![]() |
vitasdk
Documentation of the vitasdk
|
#include <psp2kern/types.h>Go to the source code of this file.
Macros | |
| #define | SCE_ID_STORAGE_LEAF_SIZE 0x200 |
| #define | SCE_ID_STORAGE_KEY_MAX 0xFFEF |
| #define | SCE_ID_STORAGE_ATOMIC_LEAVES_MAX 32 |
Enumerations | |
| enum | SceIdStorageErrorCode { SCE_ID_STORAGE_ERROR_INVALID_ARGUMENT = 0x80230000 , SCE_ID_STORAGE_ERROR_INVALID_KEY = 0x80230001 , SCE_ID_STORAGE_ERROR_INVALID_LEAF_COUNT = 0x80230002 , SCE_ID_STORAGE_ERROR_NOT_FORMATTED = 0x80230003 , SCE_ID_STORAGE_ERROR_NO_SPACE = 0x80230004 , SCE_ID_STORAGE_ERROR_LEAF_NOT_FOUND = 0x80230005 , SCE_ID_STORAGE_ERROR_LEAF_ALREADY_EXISTS = 0x80230006 } |
| Module-specific errors returned by SceIdStorage on FW 3.60. More... | |
Functions | |
| int | ksceIdStorageReadLeaf (SceUInt32 key, void *buf) |
| Read one complete IdStorage leaf. | |
| int | ksceIdStorageWriteLeaf (SceUInt32 key, const void *buf) |
| Replace one complete IdStorage leaf in the write-back cache. | |
| int | ksceIdStorageCreateAtomicLeaves (const SceUInt16 *keys, SceInt32 num_leaves) |
| Create several leaf mappings as one in-memory operation. | |
| int | ksceIdStorageCreateLeaf (SceUInt32 key) |
| Create one leaf mapping. | |
| int | ksceIdStorageDeleteLeaf (SceUInt32 key) |
| Delete one leaf mapping. | |
| int | ksceIdStorageEnumId (void) |
| Acquire and release the IdStorage mutex. | |
| int | ksceIdStorageFlush (void) |
| Write modified cached leaves and mapping-table changes to storage. | |
| int | ksceIdStorageFormat (void) |
| Initialize a new IdStorage mapping table. | |
| int | ksceIdStorageGetFreeLeaves (void) |
| Count unallocated mapping entries, which contain 0xFFFF. | |
| SceSize | ksceIdStorageGetLeafSize (void) |
| Get the fixed IdStorage leaf size. | |
| SceBool | ksceIdStorageIsDirty (void) |
| Check whether changes still need to be written to storage. | |
| SceBool | ksceIdStorageIsFormatted (void) |
| Check whether the mapping table was loaded or formatted successfully. | |
| SceBool | ksceIdStorageIsReadOnly (void) |
| Return the cached read-only flag. | |
| int | ksceIdStorageLookup (SceUInt32 key, SceUInt32 offset, void *buf, SceSize size) |
| Read a range from an existing leaf. | |
| int | ksceIdStorageRestart (SceBool flush) |
| Destroy and reinitialize the IdStorage state on FW 3.60. | |
| int | ksceIdStorageUnformat (void) |
| Mark the IdStorage partition unformatted. | |
| int | ksceIdStorageUpdate (SceUInt32 key, SceUInt32 offset, const void *buf, SceSize size) |
| Replace a range in an existing leaf through a cached read-modify-write. | |