sceKernelFindModuleByName function in User mode...

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
peb
Posts: 26
Joined: Mon Mar 12, 2007 10:01 pm

sceKernelFindModuleByName function in User mode...

Post by peb »

Hi!

Well, I want to use this function :

Code: Select all

sceKernelFindModuleByName("dummy");
but I use the firmware 3.71, so I can't use kernel mode... but I want use this function or an other which is similar. thx for your help ;)
Sorry for my English, I'm french.
Hellcat
Posts: 83
Joined: Wed Jan 24, 2007 2:52 pm

Post by Hellcat »

Make a seperate .PRX that is a kernel one, load it from your usermode .PRX and call an exported function that performs the sceKernelFindModuleByName().

Then return the results back to the calling function in the usermode .PRX

:)
TyRaNiD
Posts: 907
Joined: Sun Jan 18, 2004 12:23 am

Post by TyRaNiD »

Or perhaps just enumerate all modules and do a manual search...
peb
Posts: 26
Joined: Mon Mar 12, 2007 10:01 pm

Post by peb »

thx for your answer, I'll see that and I'll put my source code if I find ;)
Sorry for my English, I'm french.
moonlight
Posts: 567
Joined: Wed Oct 26, 2005 7:46 pm

Post by moonlight »

But enumeration in user mode will find only user mode modules (if that is what you want, then all fine). And using sceKernelFindModuleByName in kernel mode and returning the result as it is to user won't help either: it returns a kernel pointer, in the moment user code tries to manipulate it, it would crash, so it is probably better to copy the pointer to a user buffer in the kernel function, unless you only want to check if is NULL or no NULL, in that case, it is fine too :)
Post Reply