PSPSDK 2024-12-16
Loading...
Searching...
No Matches
pspsysmem.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5 *
6 * pspsysmem.h - Interface to the system memory manager.
7 *
8 * Copyright (c) 2005 Marcus R. Brown <mrbrown@ocgnet.org>
9 *
10 */
11
12/* Note: Some of the structures, types, and definitions in this file were
13 extrapolated from symbolic debugging information found in the Japanese
14 version of Puzzle Bobble. */
15
16#ifndef PSPSYSMEM_H
17#define PSPSYSMEM_H
18
19#include <pspkerneltypes.h>
20
28#ifdef __cplusplus
29extern "C" {
30#endif
31
41
43
56
65
74
81
88
104
105#if defined(_PSP_FW_VERSION) && _PSP_FW_VERSION >= 150
106
113void sceKernelPrintf(const char *format, ...) __attribute__((format(printf, 1, 2)));
114
115#endif
116
124
131
132#ifdef __cplusplus
133}
134#endif
135
138#endif /* PSPSYSMEM_H */
SceUID sceKernelAllocPartitionMemory(SceUID partitionid, const char *name, int type, SceSize size, void *addr)
Allocate a memory block from a memory partition.
SceSize sceKernelMaxFreeMemSize(void)
Get the size of the largest free memory block.
SceSize sceKernelTotalFreeMemSize(void)
Get the total amount of free memory.
int sceKernelDevkitVersion(void)
Get the firmware version.
PspSysMemBlockTypes
Specifies the type of allocation used for memory blocks.
Definition pspsysmem.h:33
void * sceKernelGetBlockHeadAddr(SceUID blockid)
Get the address of a memory block.
int sceKernelFreePartitionMemory(SceUID blockid)
Free a memory block allocated with sceKernelAllocPartitionMemory.
int SceKernelSysMemAlloc_t
Definition pspsysmem.h:42
int sceKernelGetCompiledSdkVersion(void)
Get the SDK version set with sceKernelSetCompiledSdkVersion().
int sceKernelSetCompiledSdkVersion(int version)
Set the version of the SDK with which the caller was compiled.
@ PSP_SMEM_High
Allocate from the highest available address.
Definition pspsysmem.h:37
@ PSP_SMEM_Low
Allocate from the lowest available address.
Definition pspsysmem.h:35
@ PSP_SMEM_Addr
Allocate from the specified address.
Definition pspsysmem.h:39
struct sockaddr_in __attribute__
Writes gmon.out dump file and stops profiling Called from atexit() handler; will dump out a gmon....
Definition prof.c:169
unsigned int SceSize
Definition pspkerneltypes.h:27
int SceUID
UIDs are used to describe many different kernel objects.
Definition pspkerneltypes.h:24
unsigned char version[2]
Definition psploadcore.h:2
char * name
Definition pspsysmem_kernel.h:4
unsigned char size
Definition pspsysmem_kernel.h:6
struct _uidControlBlock * type
Definition pspsysmem_kernel.h:2
float x
Definition psptypes.h:0