sceKernelReferThreadStatus returns error

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

Moderators: cheriff, TyRaNiD

Post Reply
m0skit0
Posts: 191
Joined: Tue Jun 02, 2009 8:58 pm

sceKernelReferThreadStatus returns error

Post by m0skit0 »

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

Code: Select all

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.
Criptych
Posts: 64
Joined: Sat Sep 12, 2009 5:18 am

Re: sceKernelReferThreadStatus returns error

Post by Criptych »

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. :)
"You hungry? I haven't eaten since later this afternoon."
m0skit0
Posts: 191
Joined: Tue Jun 02, 2009 8:58 pm

Post by m0skit0 »

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.
Criptych
Posts: 64
Joined: Sat Sep 12, 2009 5:18 am

Post by Criptych »

No problem. Glad to see I'm not the only one who does things like that. ;)
"You hungry? I haven't eaten since later this afternoon."
Post Reply