sceKernelAllocateFpl ?
sceKernelAllocateFpl ?
I sort of know it is used after sceKernelCreateFpl(), can anyone tell me where does this function allocate memory from? from the kernel memory or the user memory? If someone can point me to more infos about this function would be awesome, thinks!
The second param indicates the partition, usually PSP_MEMORY_PARTITION_USER or PSP_MEMORY_PARTITION_KERNEL. It has no much secrets, the main difference of this function with others, is that this one enters in lock state until the memory can be allocated (or until an optional timeout has passed).
Allocate 4096 bytes:
Allocate 4096 bytes:
Code: Select all
void *buf;
SceUID fpl = sceKernelCreateFpl("MyFPL", PSP_MEMORY_PARTITION_USER, 0, 4096, 1, NULL);
if (fpl < 0)
//handle error;
sceKernelAllocateFpl(fpl, &buf, NULL);
-
- Posts: 203
- Joined: Sat Jul 05, 2008 8:03 am