forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

sceKernelFindModuleByName function in User mode...

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
peb



Joined: 12 Mar 2007
Posts: 26

PostPosted: Mon Feb 18, 2008 4:18 am    Post subject: sceKernelFindModuleByName function in User mode... Reply with quote

Hi!

Well, I want to use this function :
Code:

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.
Back to top
View user's profile Send private message
Hellcat



Joined: 24 Jan 2007
Posts: 84

PostPosted: Tue Feb 19, 2008 2:11 pm    Post subject: Reply with quote

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

:)
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Tue Feb 19, 2008 3:53 pm    Post subject: Reply with quote

Or perhaps just enumerate all modules and do a manual search...
Back to top
View user's profile Send private message
peb



Joined: 12 Mar 2007
Posts: 26

PostPosted: Wed Feb 20, 2008 4:08 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Wed Feb 20, 2008 4:39 am    Post subject: Reply with quote

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 :)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group