Kernel memory and user memory

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

Moderators: cheriff, TyRaNiD

Post Reply
pspflashsystem
Posts: 31
Joined: Mon Mar 24, 2008 12:31 am

Kernel memory and user memory

Post by pspflashsystem »

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::.
OldPrisoneR
Posts: 53
Joined: Thu Mar 20, 2008 2:33 am

Post by OldPrisoneR »

pspflashsystem
Posts: 31
Joined: Mon Mar 24, 2008 12:31 am

Post by pspflashsystem »

Ok thanks Oldprisoner but I use this:

Code: Select all

		
 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::.
jimparis
Posts: 1145
Joined: Fri Jun 10, 2005 4:21 am
Location: Boston

Post by jimparis »

pspflashsystem wrote:Ok thanks Oldprisoner but I use this:

Code: Select all

		
 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.
Post Reply