This module contains the imports for the kernel's IO routines.
More...
|
typedef struct PspIoDrvArg | PspIoDrvArg |
| Structure passed to the init and exit functions of the io driver system.
|
|
typedef struct PspIoDrvFileArg | PspIoDrvFileArg |
| Structure passed to the file functions of the io driver system.
|
|
typedef struct PspIoDrvFuncs | PspIoDrvFuncs |
| Structure to maintain the file driver pointers.
|
|
typedef struct PspIoDrv | PspIoDrv |
|
This module contains the imports for the kernel's IO routines.
◆ PspIoDrv
typedef struct PspIoDrv PspIoDrv |
◆ PspIoDrvArg
typedef struct PspIoDrvArg PspIoDrvArg |
Structure passed to the init and exit functions of the io driver system.
◆ PspIoDrvFileArg
typedef struct PspIoDrvFileArg PspIoDrvFileArg |
Structure passed to the file functions of the io driver system.
◆ PspIoDrvFuncs
typedef struct PspIoDrvFuncs PspIoDrvFuncs |
Structure to maintain the file driver pointers.
◆ sceIoAddDrv()
Adds a new IO driver to the system.
- Note
- This is only exported in the kernel version of IoFileMgr
- Parameters
-
drv | - Pointer to a filled out driver structure |
- Returns
- < 0 on error.
- Example:
PspIoDrv host_driver = {
"host", 0x10, 0x800,
"HOST", &host_funcs };
int sceIoAddDrv(PspIoDrv *drv)
Adds a new IO driver to the system.
int sceIoDelDrv(const char *drv_name)
Deletes a IO driver from the system.
Structure to maintain the file driver pointers.
Definition pspiofilemgr_kernel.h:60
Definition pspiofilemgr_kernel.h:86
Referenced by _gdbSupportLibInit().
◆ sceIoChangeThreadCwd()
int sceIoChangeThreadCwd |
( |
SceUID | uid, |
|
|
char * | dir ) |
Set the current working directory for a thread.
- Parameters
-
uid | - The UID of the thread |
dir | - The directory to set |
- Returns
- 0 on success, < 0 on error
◆ sceIoDelDrv()
int sceIoDelDrv |
( |
const char * | drv_name | ) |
|
Deletes a IO driver from the system.
- Note
- This is only exported in the kernel version of IoFileMgr
- Parameters
-
drv_name | - Name of the driver to delete. |
- Returns
- < 0 on error
Referenced by _gdbSupportLibInit().
◆ sceIoGetThreadCwd()
int sceIoGetThreadCwd |
( |
SceUID | uid, |
|
|
char * | dir, |
|
|
int | len ) |
Get the current working directory for a thread.
- Parameters
-
uid | - The UID of the thread |
dir | - A character buffer in which to store the cwd |
len | - The length of the buffer |
- Returns
- Number of characters written to buf, if no cwd then 0 is returned.
◆ sceIoReopen()
int sceIoReopen |
( |
const char * | file, |
|
|
int | flags, |
|
|
SceMode | mode, |
|
|
SceUID | fd ) |
Reopens an existing file descriptor.
- Parameters
-
file | - The new file to open. |
flags | - The open flags. |
mode | - The open mode. |
fd | - The old filedescriptor to reopen |
- Returns
- < 0 on error, otherwise the reopened fd.