mirror of
https://github.com/GaryOderNichts/recovery_menu.git
synced 2025-06-20 03:35:35 -04:00
16 lines
232 B
C
16 lines
232 B
C
#include "pm.h"
|
|
#include "imports.h"
|
|
|
|
int PM_Restart(void)
|
|
{
|
|
int fd = IOS_Open("/dev/pm",0);
|
|
if (fd < 0) {
|
|
return fd;
|
|
}
|
|
|
|
int res = IOS_Ioctl(fd, 0xe3, NULL, 0, NULL, 0);
|
|
IOS_Close(fd);
|
|
|
|
return res;
|
|
}
|