| View previous topic :: View next topic |
| Author |
Message |
pspflashsystem
Joined: 24 Mar 2008 Posts: 31
|
Posted: Tue Nov 11, 2008 7:52 am Post subject: Kernel memory and user memory |
|
|
Hi everyone,
I just want to know how I can know the kernel memory and the user memory of the psp (what's the function in the sdk to display them?)?
Thanks in advance;
pspflashsystem _________________ I'm apologize for my bad English because I am French :)
.::pspflashsystem::. |
|
| Back to top |
|
 |
OldPrisoneR
Joined: 20 Mar 2008 Posts: 53
|
|
| Back to top |
|
 |
pspflashsystem
Joined: 24 Mar 2008 Posts: 31
|
Posted: Wed Nov 12, 2008 8:14 am Post subject: |
|
|
Ok thanks Oldprisoner but I use this:
| Code: |
PspSysmemPartitionInfo *user;
sceKernelQueryMemoryPartitionInfo(2, &user);
sprintf(strconfig1, "%d/%d", sceKernelQueryMemoryPartitionInfo(2, &info), sceKernelPartitionTotalFreeMemSize(2)); |
And the value of sceKernelQueryMemoryPartitionInfo(2, &info) is a negative number -2147352366 and sceKernelPartitionTotalFreeMemSize(2) works fine (24352512 bytes). So, why?
Thanks in advance for your help :) _________________ I'm apologize for my bad English because I am French :)
.::pspflashsystem::. |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Wed Nov 12, 2008 10:21 am Post subject: |
|
|
| pspflashsystem wrote: | Ok thanks Oldprisoner but I use this:
| Code: |
PspSysmemPartitionInfo *user;
sceKernelQueryMemoryPartitionInfo(2, &user);
sprintf(strconfig1, "%d/%d", sceKernelQueryMemoryPartitionInfo(2, &info), sceKernelPartitionTotalFreeMemSize(2)); |
And the value of sceKernelQueryMemoryPartitionInfo(2, &info) is a negative number -2147352366 |
-2147352366 = 0x800200d2 = SCE_KERNEL_ERROR_ILLEGAL_ARGUMENT.
sceKernelQueryMemoryPartitionInfo takes a pointer to the info structure, not a pointer to a pointer. |
|
| Back to top |
|
 |
|