When hooking a kernel function in the samples that i have seen programmers
use sctrHENFindFunction like this sample got from iop.prx:
orgaddr[0]=sctrlHENFindFunction("sceIOFileManager", "IoFileMgrForUser", 0x06A70004);
this function get the address of the nid 0x06A7004 aka sceIoMkdir
i have found the nid from http://silverspring.lan.st/
My question Is this code firmware independant even if sony change is nids ?
Does M33 firmware do all the job ?
Another question what does this function do ?
int level = sctrlKernelSetUserLevel(8);
it save the userlevel into the var level but what is the userlevel ?
Precision regarding sctrlHENFindFunction
-
- Posts: 203
- Joined: Sat Jul 05, 2008 8:03 am
You only need to search for the 3.52 NIDs. The M33 NIDs resolver will handle the random NIDs even in this function.
Userlevel is required for some privileged operations. In the case of iop.prx all the functions are syscalls, so they will be executed in the context of the thread that called the function, i.e. a user mode thread. By setting the userlever=8, the level of the calling user mode thread will be 8 and it can access the restricted functions like assigning flash0:/ for read/write etc.
Userlevel is required for some privileged operations. In the case of iop.prx all the functions are syscalls, so they will be executed in the context of the thread that called the function, i.e. a user mode thread. By setting the userlever=8, the level of the calling user mode thread will be 8 and it can access the restricted functions like assigning flash0:/ for read/write etc.
-
- Posts: 203
- Joined: Sat Jul 05, 2008 8:03 am