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 

sceKernelReferThreadStatus returns error

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



Joined: 02 Jun 2009
Posts: 226

PostPosted: Mon Feb 08, 2010 11:23 pm    Post subject: sceKernelReferThreadStatus returns error Reply with quote

Hi everybody. This line of code belongs to a kernel module:

Code:
ret = sceKernelGetThreadmanIdList(SCE_KERNEL_TMID_Thread, uid_list, 20, &count);
...
ret = sceKernelReferThreadStatus(uid_list[i], &thread_info);

I don't understand why this last call always returns error code 0x800201bc (SCE_KERNEL_ERROR_ILLEGAL_SIZE) (size, what size??), when uid_list array contains valid thread UIDs.

Thanks for your time
_________________
The Incredible Bill Gates wrote:
The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Back to top
View user's profile Send private message
Criptych



Joined: 12 Sep 2009
Posts: 79

PostPosted: Tue Feb 09, 2010 1:32 am    Post subject: Re: sceKernelReferThreadStatus returns error Reply with quote

m0skit0 wrote:
size, what size??

PSPSDK Docs wrote:
Note: The structures size field should be set to sizeof(SceKernelThreadInfo) before calling this function.

That size. :)
_________________
PSP-2000 // CFW: 5.50 GEN-D2 ...and not upgrading until OFW supports homebrew!
(But I did downgrade to 1.50 with TimeMachine...)
"I want you to tell me how the machine makes you feel."
Back to top
View user's profile Send private message
m0skit0



Joined: 02 Jun 2009
Posts: 226

PostPosted: Tue Feb 09, 2010 2:43 am    Post subject: Reply with quote

Errr, right, thanks and sorry :P
_________________
The Incredible Bill Gates wrote:
The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers.
Back to top
View user's profile Send private message
Criptych



Joined: 12 Sep 2009
Posts: 79

PostPosted: Tue Feb 09, 2010 2:19 pm    Post subject: Reply with quote

No problem. Glad to see I'm not the only one who does things like that. ;)
_________________
PSP-2000 // CFW: 5.50 GEN-D2 ...and not upgrading until OFW supports homebrew!
(But I did downgrade to 1.50 with TimeMachine...)
"I want you to tell me how the machine makes you feel."
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