diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/kernel/kernel/sysmem.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/include/kernel/kernel/sysmem.h b/include/kernel/kernel/sysmem.h index 90db617..b9fdac3 100644 --- a/include/kernel/kernel/sysmem.h +++ b/include/kernel/kernel/sysmem.h @@ -51,8 +51,8 @@ typedef struct SceKernelAllocMemBlockKernelOpt { SceUInt32 field_C; SceUInt32 paddr; SceSize alignment; - SceUInt32 field_18; - SceUInt32 field_1C; + SceUInt32 extraLow; + SceUInt32 extraHigh; SceUInt32 mirror_blockid; SceUID pid; SceKernelPaddrList *paddr_list; @@ -133,14 +133,24 @@ int sceKernelFreeMemBlock(SceUID uid); /*** * Gets the base address of a memory block * - * @param[in] uid - SceUID of the memory block to free - * @param[out] basep - Base address of the memory block identified by SceUID + * @param[in] uid - SceUID of the memory block + * @param[out] basep - Base address of the memory block identified by uid * * @return 0 on success, < 0 on error. */ int sceKernelGetMemBlockBase(SceUID uid, void **basep); /*** + * Gets the memory block type of a memory block + * + * @param[in] uid - SceUID of the memory block + * @param[out] type - Type of the memory block identified by uid + * + * @return 0 on success, < 0 on error. +*/ +int sceKernelGetMemBlockType(SceUID uid, unsigned int *type); + +/*** * Find the SceUID of a memory block * * @param[in] addr - Base address of the memory block |