|
PSPSDK 2026-11-05
Unofficial static mirror · snapshot 2026-11-05 · upstream documentation
|
Structure passed to the file functions of the io driver system. More...
#include <kernel/pspiofilemgr_kernel.h>

Data Fields | |
| u32 | flags |
| The file flags. | |
| u32 | fs_num |
| The file system number, e.g. | |
| PspIoDrvArg * | drv |
| A pointer to the driver entry data. | |
| u32 | dev_attr |
| The device attributes. | |
| void * | arg |
| Pointer to a user defined argument, this is preserved on a per file basis. | |
| SceIoCwd * | cwd |
| Current work directory data. | |
| s64 | file_pos |
| The current file position offset. | |
| SceUID | thread_id |
| he thread UID of owner (?). | |
| u32 | unk |
| SceUID | uid |
| UID of the opened file. | |
| SceUID | open_thread_id |
| The thread UID of the thread that opened the file. | |
| u8 | is_user_mode |
| If the file is opened in user mode. | |
| u8 | is_power_locked |
| If the file was opened with power lock flag. | |
| u8 | unk2 |
| Unknown. | |
| u8 | async_priority |
| The async task priority. | |
| SceUID | async_thread_id |
| The thread UID of the thread for the file async operations. | |
| SceUID | async_sema |
| The semaphore UID for the file async operations. | |
| SceUID | async_event_flag |
| The event flag UID for the file async operations. | |
| SceUID | async_callback |
| The callback UID for the file async operations. | |
| void * | async_callback_argp |
A pointer to the parameter to pass to async_callback. | |
| u32 | unused |
| u32 | k1 |
The current k1 register value for async operations. | |
| s64 | async_return |
| The async return value of operations. | |
| s32 | async_args [6] |
| Arguments for the command to use. | |
| u32 | async_cmd |
| The async command to execute. | |
| u32 | user_level |
| The current user level of the file. | |
| u32 | hook [3] |
| The IO hook. | |
| u32 | unk3 |
| char * | new_path |
| SceSize | return_addr |
| The return address. | |
Structure passed to the file functions of the io driver system.
| void* PspIoDrvFileArg::arg |
Pointer to a user defined argument, this is preserved on a per file basis.
| s32 PspIoDrvFileArg::async_args[6] |
Arguments for the command to use.
| SceUID PspIoDrvFileArg::async_callback |
The callback UID for the file async operations.
| void* PspIoDrvFileArg::async_callback_argp |
A pointer to the parameter to pass to async_callback.
| u32 PspIoDrvFileArg::async_cmd |
The async command to execute.
| SceUID PspIoDrvFileArg::async_event_flag |
The event flag UID for the file async operations.
| u8 PspIoDrvFileArg::async_priority |
The async task priority.
| s64 PspIoDrvFileArg::async_return |
The async return value of operations.
| SceUID PspIoDrvFileArg::async_sema |
The semaphore UID for the file async operations.
| SceUID PspIoDrvFileArg::async_thread_id |
The thread UID of the thread for the file async operations.
| SceIoCwd* PspIoDrvFileArg::cwd |
Current work directory data.
| u32 PspIoDrvFileArg::dev_attr |
The device attributes.
| PspIoDrvArg* PspIoDrvFileArg::drv |
A pointer to the driver entry data.
| s64 PspIoDrvFileArg::file_pos |
The current file position offset.
| u32 PspIoDrvFileArg::flags |
The file flags.
Bit or'ed PSP_O_* flags
| u32 PspIoDrvFileArg::fs_num |
The file system number, e.g.
if a file is opened as host5:/myfile.txt this field will be 5
| u32 PspIoDrvFileArg::hook[3] |
The IO hook.
| u8 PspIoDrvFileArg::is_power_locked |
If the file was opened with power lock flag.
| u8 PspIoDrvFileArg::is_user_mode |
If the file is opened in user mode.
| u32 PspIoDrvFileArg::k1 |
The current k1 register value for async operations.
| char* PspIoDrvFileArg::new_path |
| SceUID PspIoDrvFileArg::open_thread_id |
The thread UID of the thread that opened the file.
| SceSize PspIoDrvFileArg::return_addr |
The return address.
| SceUID PspIoDrvFileArg::thread_id |
he thread UID of owner (?).
| SceUID PspIoDrvFileArg::uid |
UID of the opened file.
| u32 PspIoDrvFileArg::unk |
| u8 PspIoDrvFileArg::unk2 |
Unknown.
It is a boolean of some sort, async related.
| u32 PspIoDrvFileArg::unk3 |
| u32 PspIoDrvFileArg::unused |
| u32 PspIoDrvFileArg::user_level |
The current user level of the file.