PSPSDK 2026-11-05
Unofficial static mirror · snapshot 2026-11-05 · upstream documentation
Loading...
Searching...
No Matches
PspIoDrvFileArg Struct Reference

Structure passed to the file functions of the io driver system. More...

#include <kernel/pspiofilemgr_kernel.h>

Collaboration diagram for PspIoDrvFileArg:

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.
 

Detailed Description

Structure passed to the file functions of the io driver system.

Field Documentation

◆ arg

void* PspIoDrvFileArg::arg

Pointer to a user defined argument, this is preserved on a per file basis.

◆ async_args

s32 PspIoDrvFileArg::async_args[6]

Arguments for the command to use.

◆ async_callback

SceUID PspIoDrvFileArg::async_callback

The callback UID for the file async operations.

◆ async_callback_argp

void* PspIoDrvFileArg::async_callback_argp

A pointer to the parameter to pass to async_callback.

◆ async_cmd

u32 PspIoDrvFileArg::async_cmd

The async command to execute.

◆ async_event_flag

SceUID PspIoDrvFileArg::async_event_flag

The event flag UID for the file async operations.

◆ async_priority

u8 PspIoDrvFileArg::async_priority

The async task priority.

◆ async_return

s64 PspIoDrvFileArg::async_return

The async return value of operations.

◆ async_sema

SceUID PspIoDrvFileArg::async_sema

The semaphore UID for the file async operations.

◆ async_thread_id

SceUID PspIoDrvFileArg::async_thread_id

The thread UID of the thread for the file async operations.

◆ cwd

SceIoCwd* PspIoDrvFileArg::cwd

Current work directory data.

◆ dev_attr

u32 PspIoDrvFileArg::dev_attr

The device attributes.

◆ drv

PspIoDrvArg* PspIoDrvFileArg::drv

A pointer to the driver entry data.

◆ file_pos

s64 PspIoDrvFileArg::file_pos

The current file position offset.

◆ flags

u32 PspIoDrvFileArg::flags

The file flags.

Bit or'ed PSP_O_* flags

◆ fs_num

u32 PspIoDrvFileArg::fs_num

The file system number, e.g.

if a file is opened as host5:/myfile.txt this field will be 5

◆ hook

u32 PspIoDrvFileArg::hook[3]

The IO hook.

◆ is_power_locked

u8 PspIoDrvFileArg::is_power_locked

If the file was opened with power lock flag.

◆ is_user_mode

u8 PspIoDrvFileArg::is_user_mode

If the file is opened in user mode.

◆ k1

u32 PspIoDrvFileArg::k1

The current k1 register value for async operations.

◆ new_path

char* PspIoDrvFileArg::new_path

◆ open_thread_id

SceUID PspIoDrvFileArg::open_thread_id

The thread UID of the thread that opened the file.

◆ return_addr

SceSize PspIoDrvFileArg::return_addr

The return address.

◆ thread_id

SceUID PspIoDrvFileArg::thread_id

he thread UID of owner (?).

◆ uid

SceUID PspIoDrvFileArg::uid

UID of the opened file.

◆ unk

u32 PspIoDrvFileArg::unk

◆ unk2

u8 PspIoDrvFileArg::unk2

Unknown.

It is a boolean of some sort, async related.

◆ unk3

u32 PspIoDrvFileArg::unk3

◆ unused

u32 PspIoDrvFileArg::unused

◆ user_level

u32 PspIoDrvFileArg::user_level

The current user level of the file.


The documentation for this struct was generated from the following file: