sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
ioman.h File Reference
#include <types.h>
#include <irx.h>
#include <io_common.h>

Go to the source code of this file.

Classes

struct  _iop_file
struct  _iop_device
struct  _iop_device_ops

Macros

#define IOP_DT_CHAR   0x01
#define IOP_DT_CONS   0x02
#define IOP_DT_BLOCK   0x04
#define IOP_DT_RAW   0x08
#define IOP_DT_FS   0x10
#define IOMAN_RETURN_VALUE_IMPL(val)
#define IOMAN_RETURN_VALUE(val)
#define IOMAN_RETURN_VALUE_S64(val)
#define ioman_IMPORTS_start   DECLARE_IMPORT_TABLE(ioman, 1, 1)
#define ioman_IMPORTS_end   END_IMPORT_TABLE
#define I_open   DECLARE_IMPORT(4, open)
#define I_close   DECLARE_IMPORT(5, close)
#define I_read   DECLARE_IMPORT(6, read)
#define I_write   DECLARE_IMPORT(7, write)
#define I_lseek   DECLARE_IMPORT(8, lseek)
#define I_ioctl   DECLARE_IMPORT(9, ioctl)
#define I_remove   DECLARE_IMPORT(10, remove)
#define I_mkdir   DECLARE_IMPORT(11, mkdir)
#define I_rmdir   DECLARE_IMPORT(12, rmdir)
#define I_dopen   DECLARE_IMPORT(13, dopen)
#define I_dclose   DECLARE_IMPORT(14, dclose)
#define I_dread   DECLARE_IMPORT(15, dread)
#define I_getstat   DECLARE_IMPORT(16, getstat)
#define I_chstat   DECLARE_IMPORT(17, chstat)
#define I_format   DECLARE_IMPORT(18, format)
#define I_AddDrv   DECLARE_IMPORT(20, AddDrv);
#define I_DelDrv   DECLARE_IMPORT(21, DelDrv);

Typedefs

typedef struct _iop_file iop_file_t
typedef struct _iop_device iop_device_t
typedef struct _iop_device_ops iop_device_ops_t

Functions

int open (const char *name, int mode)
int close (int fd)
int read (int fd, void *ptr, size_t size)
int write (int fd, void *ptr, size_t size)
int lseek (int fd, int pos, int mode)
int ioctl (int fd, int command, void *arg)
int remove (const char *name)
int mkdir (const char *path)
int rmdir (const char *path)
int dopen (const char *path, int mode)
int dclose (int fd)
int dread (int fd, io_dirent_t *buf)
int getstat (const char *name, io_stat_t *stat)
int chstat (const char *name, io_stat_t *stat, unsigned int statmask)
int format (const char *dev)
int AddDrv (iop_device_t *device)
int DelDrv (const char *name)

Detailed Description

IOMAN definitions and imports.

Definition in file ioman.h.

Macro Definition Documentation

◆ I_AddDrv

#define I_AddDrv   DECLARE_IMPORT(20, AddDrv);

Definition at line 121 of file ioman.h.

◆ I_chstat

#define I_chstat   DECLARE_IMPORT(17, chstat)

Definition at line 119 of file ioman.h.

◆ I_close

#define I_close   DECLARE_IMPORT(5, close)

Definition at line 107 of file ioman.h.

◆ I_dclose

#define I_dclose   DECLARE_IMPORT(14, dclose)

Definition at line 116 of file ioman.h.

◆ I_DelDrv

#define I_DelDrv   DECLARE_IMPORT(21, DelDrv);

Definition at line 122 of file ioman.h.

◆ I_dopen

#define I_dopen   DECLARE_IMPORT(13, dopen)

Definition at line 115 of file ioman.h.

◆ I_dread

#define I_dread   DECLARE_IMPORT(15, dread)

Definition at line 117 of file ioman.h.

◆ I_format

#define I_format   DECLARE_IMPORT(18, format)

Definition at line 120 of file ioman.h.

◆ I_getstat

#define I_getstat   DECLARE_IMPORT(16, getstat)

Definition at line 118 of file ioman.h.

◆ I_ioctl

#define I_ioctl   DECLARE_IMPORT(9, ioctl)

Definition at line 111 of file ioman.h.

◆ I_lseek

#define I_lseek   DECLARE_IMPORT(8, lseek)

Definition at line 110 of file ioman.h.

◆ I_mkdir

#define I_mkdir   DECLARE_IMPORT(11, mkdir)

Definition at line 113 of file ioman.h.

◆ I_open

#define I_open   DECLARE_IMPORT(4, open)

Definition at line 106 of file ioman.h.

◆ I_read

#define I_read   DECLARE_IMPORT(6, read)

Definition at line 108 of file ioman.h.

◆ I_remove

#define I_remove   DECLARE_IMPORT(10, remove)

Definition at line 112 of file ioman.h.

◆ I_rmdir

#define I_rmdir   DECLARE_IMPORT(12, rmdir)

Definition at line 114 of file ioman.h.

◆ I_write

#define I_write   DECLARE_IMPORT(7, write)

Definition at line 109 of file ioman.h.

◆ ioman_IMPORTS_end

#define ioman_IMPORTS_end   END_IMPORT_TABLE

Definition at line 104 of file ioman.h.

◆ ioman_IMPORTS_start

#define ioman_IMPORTS_start   DECLARE_IMPORT_TABLE(ioman, 1, 1)

Definition at line 103 of file ioman.h.

◆ IOMAN_RETURN_VALUE

#define IOMAN_RETURN_VALUE ( val)
Value:
((void*)&my_ioman_retval_##val##_int)

Definition at line 77 of file ioman.h.

◆ IOMAN_RETURN_VALUE_IMPL

#define IOMAN_RETURN_VALUE_IMPL ( val)
Value:
static inline int my_ioman_retval_##val##_int(void) {return -val;} \
static inline signed long long my_ioman_retval_##val##_s64(void) {return -val;}

Definition at line 74 of file ioman.h.

◆ IOMAN_RETURN_VALUE_S64

#define IOMAN_RETURN_VALUE_S64 ( val)
Value:
((void*)&my_ioman_retval_##val##_s64)

Definition at line 78 of file ioman.h.

◆ IOP_DT_BLOCK

#define IOP_DT_BLOCK   0x04

Definition at line 49 of file ioman.h.

◆ IOP_DT_CHAR

#define IOP_DT_CHAR   0x01

Definition at line 47 of file ioman.h.

◆ IOP_DT_CONS

#define IOP_DT_CONS   0x02

Definition at line 48 of file ioman.h.

◆ IOP_DT_FS

#define IOP_DT_FS   0x10

Definition at line 51 of file ioman.h.

◆ IOP_DT_RAW

#define IOP_DT_RAW   0x08

Definition at line 50 of file ioman.h.

Typedef Documentation

◆ iop_file_t

typedef struct _iop_file iop_file_t

File objects passed to driver operations.

Function Documentation

◆ rmdir()

int rmdir ( const char * path)
extern

Definition at line 520 of file glue.c.