| View previous topic :: View next topic |
| Author |
Message |
m0skit0
Joined: 02 Jun 2009 Posts: 226
|
Posted: Mon Feb 08, 2010 11:23 pm Post subject: sceKernelReferThreadStatus returns error |
|
|
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 |
|
 |
Criptych
Joined: 12 Sep 2009 Posts: 79
|
Posted: Tue Feb 09, 2010 1:32 am Post subject: Re: sceKernelReferThreadStatus returns error |
|
|
| 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 |
|
 |
m0skit0
Joined: 02 Jun 2009 Posts: 226
|
Posted: Tue Feb 09, 2010 2:43 am Post subject: |
|
|
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 |
|
 |
Criptych
Joined: 12 Sep 2009 Posts: 79
|
Posted: Tue Feb 09, 2010 2:19 pm Post subject: |
|
|
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 |
|
 |
|