ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
#include <tamtypes.h>
#include <kernel.h>
#include <sifrpc.h>
#include <stdio.h>
#include <string.h>
#include <malloc.h>
#include <stdarg.h>
#include <sys/fcntl.h>
#include <sys/stat.h>
#include <ps2sdkapi.h>
#include <fileXio_rpc.h>
#include <errno.h>
Go to the source code of this file.
Macros | |
#define | NEWLIB_PORT_AWARE |
Functions | |
static void | _fxio_intr (void) |
static int | _lock (void) |
static int | _unlock (void) |
static time_t | io_to_posix_time (const unsigned char *ps2time) |
static mode_t | iox_to_posix_mode (unsigned int ps2mode) |
static void | fill_stat (struct stat *stat, const iox_stat_t *fiostat) |
static int | fileXioGetstatHelper (const char *path, struct stat *buf) |
static DIR * | fileXioOpendirHelper (const char *path) |
static struct dirent * | fileXioReaddirHelper (DIR *dir) |
static void | fileXioRewinddirHelper (DIR *dir) |
static int | fileXioClosedirHelper (DIR *dir) |
int | fileXioInit (void) |
void | fileXioExit (void) |
void | fileXioStop (void) |
int | fileXioGetDeviceList (struct fileXioDevice deviceEntry[], unsigned int req_entries) |
int | fileXioGetdir (const char *pathname, struct fileXioDirEntry dirEntry[], unsigned int req_entries) |
int | fileXioMount (const char *mountpoint, const char *mountstring, int flag) |
int | fileXioUmount (const char *mountpoint) |
int | fileXioCopyfile (const char *source, const char *dest, int mode) |
int | fileXioMkdir (const char *pathname, int mode) |
int | fileXioRmdir (const char *pathname) |
int | fileXioRemove (const char *pathname) |
int | fileXioRename (const char *source, const char *dest) |
int | fileXioSymlink (const char *source, const char *dest) |
int | fileXioReadlink (const char *source, char *buf, int buflen) |
int | fileXioChdir (const char *pathname) |
int | fileXioOpen (const char *source, int flags,...) |
int | fileXioClose (int fd) |
static void | recv_intr (void *data_raw) |
int | fileXioRead (int fd, void *buf, int size) |
int | fileXioWrite (int fd, const void *buf, int size) |
int | fileXioLseek (int fd, int offset, int whence) |
s64 | fileXioLseek64 (int fd, s64 offset, int whence) |
int | fileXioChStat (const char *name, iox_stat_t *stat, int mask) |
int | fileXioGetStat (const char *name, iox_stat_t *stat) |
int | fileXioFormat (const char *dev, const char *blockdev, const void *args, int arglen) |
int | fileXioSync (const char *devname, int flag) |
int | fileXioDopen (const char *name) |
int | fileXioDclose (int fd) |
int | fileXioDread (int fd, iox_dirent_t *dirent) |
static void | fxio_ctl_intr (void *data_raw) |
int | fileXioDevctl (const char *name, int cmd, void *arg, unsigned int arglen, void *buf, unsigned int buflen) |
int | fileXioIoctl (int fd, int cmd, void *arg) |
int | fileXioIoctl2 (int fd, int command, void *arg, unsigned int arglen, void *buf, unsigned int buflen) |
int | fileXioWaitAsync (int mode, int *retVal) |
void | fileXioSetBlockMode (int blocking) |
int | fileXioSetRWBufferSize (int size) |
Variables | |
int | _iop_reboot_count |
static SifRpcClientData_t | cd0 |
static unsigned int | sbuff [0x1300] |
static int | _intr_data [0xC00] |
static int | fileXioInited = 0 |
static int | fileXioBlockMode |
static int | fileXioCompletionSema = -1 |
static int | _lock_sema_id = -1 |
fileXio RPC client
Definition in file fileXio_rpc.c.
#define NEWLIB_PORT_AWARE |
Definition at line 27 of file fileXio_rpc.c.
|
static |
Definition at line 39 of file fileXio_rpc.c.
References fileXioCompletionSema, and iSignalSema().
Referenced by fileXioChdir(), fileXioChStat(), fileXioClose(), fileXioCopyfile(), fileXioDclose(), fileXioDevctl(), fileXioDopen(), fileXioDread(), fileXioFormat(), fileXioGetDeviceList(), fileXioGetdir(), fileXioGetStat(), fileXioIoctl(), fileXioIoctl2(), fileXioLseek(), fileXioLseek64(), fileXioMkdir(), fileXioMount(), fileXioOpen(), fileXioReadlink(), fileXioRemove(), fileXioRename(), fileXioRmdir(), fileXioSetRWBufferSize(), fileXioSymlink(), fileXioSync(), fileXioUmount(), and fileXioWrite().
|
inlinestatic |
Definition at line 45 of file fileXio_rpc.c.
References _lock_sema_id, and WaitSema().
Referenced by fileXioChdir(), fileXioChStat(), fileXioClose(), fileXioCopyfile(), fileXioDclose(), fileXioDevctl(), fileXioDopen(), fileXioDread(), fileXioFormat(), fileXioGetDeviceList(), fileXioGetdir(), fileXioGetStat(), fileXioIoctl(), fileXioIoctl2(), fileXioLseek(), fileXioLseek64(), fileXioMkdir(), fileXioMount(), fileXioOpen(), fileXioRead(), fileXioReadlink(), fileXioRemove(), fileXioRename(), fileXioRmdir(), fileXioSetRWBufferSize(), fileXioSymlink(), fileXioSync(), fileXioUmount(), and fileXioWrite().
|
inlinestatic |
Definition at line 50 of file fileXio_rpc.c.
References _lock_sema_id, and SignalSema().
Referenced by fileXioChdir(), fileXioChStat(), fileXioClose(), fileXioCopyfile(), fileXioDclose(), fileXioDevctl(), fileXioDopen(), fileXioDread(), fileXioFormat(), fileXioGetDeviceList(), fileXioGetdir(), fileXioGetStat(), fileXioIoctl(), fileXioIoctl2(), fileXioLseek(), fileXioLseek64(), fileXioMkdir(), fileXioMount(), fileXioOpen(), fileXioRead(), fileXioReadlink(), fileXioRemove(), fileXioRename(), fileXioRmdir(), fileXioSetRWBufferSize(), fileXioSymlink(), fileXioSync(), fileXioUmount(), and fileXioWrite().
int fileXioChdir | ( | const char * | pathname | ) |
Definition at line 556 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, ENOPKG, FILEXIO_CHDIR, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, NULL, packet, fxio_pathsel_packet::pathname, sbuff, SifCallRpc(), SignalSema(), and WaitSema().
int fileXioChStat | ( | const char * | name, |
iox_stat_t * | stat, | ||
int | mask | ||
) |
Definition at line 784 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, ENOPKG, FILEXIO_CHSTAT, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, IS_UNCACHED_SEG, fxio_chstat_packet::mask, NULL, packet, sbuff, SifCallRpc(), SifWriteBackDCache(), SignalSema(), fxio_chstat_packet::stat, and WaitSema().
int fileXioClose | ( | int | fd | ) |
Definition at line 612 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, ENOPKG, fxio_close_packet::fd, FILEXIO_CLOSE, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, NULL, packet, sbuff, SifCallRpc(), SignalSema(), and WaitSema().
Referenced by fileXioInit(), hddExpandFilesystem(), hddGetFilesystemList(), and hddMakeFilesystem().
|
static |
Definition at line 163 of file fileXio_rpc.c.
References fileXioDclose(), and NULL.
Referenced by fileXioInit().
int fileXioCopyfile | ( | const char * | source, |
const char * | dest, | ||
int | mode | ||
) |
Definition at line 371 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, fxio_copyfile_packet::dest, ENOPKG, FILEXIO_COPYFILE, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, mode, NULL, packet, sbuff, SifCallRpc(), SignalSema(), fxio_copyfile_packet::source, and WaitSema().
int fileXioDclose | ( | int | fd | ) |
Definition at line 924 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, ENOPKG, fxio_close_packet::fd, FILEXIO_DCLOSE, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, NULL, packet, sbuff, SifCallRpc(), SignalSema(), and WaitSema().
Referenced by fileXioClosedirHelper(), hddGetFilesystemList(), and hddUpdateInfo().
int fileXioDevctl | ( | const char * | name, |
int | cmd, | ||
void * | arg, | ||
unsigned int | arglen, | ||
void * | buf, | ||
unsigned int | buflen | ||
) |
Definition at line 986 of file fileXio_rpc.c.
References _fxio_intr(), _intr_data, _lock(), _unlock(), fxio_devctl_packet::arg, fxio_devctl_packet::arglen, fxio_devctl_packet::buf, fxio_devctl_packet::buflen, cd0, fxio_devctl_packet::cmd, CTL_BUF_SIZE, ENOPKG, FILEXIO_DEVCTL, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), fxio_ctl_intr(), FXIO_NOWAIT, fxio_devctl_packet::name, NULL, packet, sbuff, SifCallRpc(), SifWriteBackDCache(), SignalSema(), and WaitSema().
Referenced by hddCheckFormatted(), hddCheckPresent(), hddGetFilesystemList(), and hddUpdateInfo().
int fileXioDopen | ( | const char * | name | ) |
Definition at line 900 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, ENOPKG, FILEXIO_DOPEN, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, NULL, packet, sbuff, SifCallRpc(), SignalSema(), and WaitSema().
Referenced by fileXioOpendirHelper(), hddGetFilesystemList(), and hddUpdateInfo().
int fileXioDread | ( | int | fd, |
iox_dirent_t * | dirent | ||
) |
Definition at line 948 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, fxio_dread_packet::dirent, ENOPKG, fxio_dread_packet::fd, FILEXIO_DREAD, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, IS_UNCACHED_SEG, NULL, packet, sbuff, SifCallRpc(), SifWriteBackDCache(), SignalSema(), and WaitSema().
Referenced by fileXioReaddirHelper(), hddGetFilesystemList(), and hddUpdateInfo().
void fileXioExit | ( | void | ) |
Definition at line 237 of file fileXio_rpc.c.
References _lock_sema_id, cd0, DeleteSema(), fileXioCompletionSema, and fileXioInited.
Referenced by fileXioInit().
int fileXioFormat | ( | const char * | dev, |
const char * | blockdev, | ||
const void * | args, | ||
int | arglen | ||
) |
Definition at line 843 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), fxio_format_packet::arglen, fxio_format_packet::args, cd0, ENOPKG, FILEXIO_FORMAT, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, NULL, packet, sbuff, SifCallRpc(), SignalSema(), and WaitSema().
Referenced by hddFormat(), and hddMakeFilesystem().
int fileXioGetDeviceList | ( | struct fileXioDevice | deviceEntry[], |
unsigned int | req_entries | ||
) |
Definition at line 260 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, fxio_devlist_packet::deviceEntry, ENOPKG, FILEXIO_GETDEVICELIST, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, NULL, packet, sbuff, SifCallRpc(), SignalSema(), and WaitSema().
int fileXioGetdir | ( | const char * | pathname, |
struct fileXioDirEntry | dirEntry[], | ||
unsigned int | req_entries | ||
) |
Definition at line 287 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, fxio_getdir_packet::dirEntry, ENOPKG, FILEXIO_GETDIR, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, NULL, packet, fxio_getdir_packet::pathname, sbuff, SifCallRpc(), SifWriteBackDCache(), SignalSema(), and WaitSema().
int fileXioGetStat | ( | const char * | name, |
iox_stat_t * | stat | ||
) |
Definition at line 814 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, ENOPKG, FILEXIO_GETSTAT, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, IS_UNCACHED_SEG, NULL, packet, sbuff, SifCallRpc(), SifWriteBackDCache(), SignalSema(), fxio_getstat_packet::stat, and WaitSema().
Referenced by fileXioGetstatHelper().
|
static |
Definition at line 101 of file fileXio_rpc.c.
References fileXioGetStat(), and fill_stat().
Referenced by fileXioInit().
int fileXioInit | ( | void | ) |
Definition at line 176 of file fileXio_rpc.c.
References _iop_reboot_count, _lock_sema_id, _ps2sdk_close, _ps2sdk_closedir, _ps2sdk_ioctl, _ps2sdk_lseek, _ps2sdk_lseek64, _ps2sdk_mkdir, _ps2sdk_open, _ps2sdk_opendir, _ps2sdk_read, _ps2sdk_readdir, _ps2sdk_remove, _ps2sdk_rename, _ps2sdk_rewinddir, _ps2sdk_rmdir, _ps2sdk_stat, _ps2sdk_write, cd0, CreateSema(), FILEXIO_IRX, fileXioBlockMode, fileXioClose(), fileXioClosedirHelper(), fileXioCompletionSema, fileXioExit(), fileXioGetstatHelper(), fileXioInited, fileXioIoctl(), fileXioLseek(), fileXioLseek64(), fileXioMkdir(), fileXioOpen(), fileXioOpendirHelper(), fileXioRead(), fileXioReaddirHelper(), fileXioRemove(), fileXioRename(), fileXioRewinddirHelper(), fileXioRmdir(), fileXioWrite(), FXIO_WAIT, nopdelay(), NULL, SifRpcClientData_t::server, SifBindRpc(), and sp.
Referenced by fileXioChdir(), fileXioChStat(), fileXioClose(), fileXioCopyfile(), fileXioDclose(), fileXioDevctl(), fileXioDopen(), fileXioDread(), fileXioFormat(), fileXioGetDeviceList(), fileXioGetdir(), fileXioGetStat(), fileXioIoctl(), fileXioIoctl2(), fileXioLseek(), fileXioLseek64(), fileXioMkdir(), fileXioMount(), fileXioOpen(), fileXioRead(), fileXioReadlink(), fileXioRemove(), fileXioRename(), fileXioRmdir(), fileXioSetRWBufferSize(), fileXioStop(), fileXioSymlink(), fileXioSync(), fileXioUmount(), fileXioWaitAsync(), and fileXioWrite().
int fileXioIoctl | ( | int | fd, |
int | cmd, | ||
void * | arg | ||
) |
Definition at line 1028 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), fxio_ioctl_packet::arg, cd0, fxio_ioctl_packet::cmd, ENOPKG, fxio_ioctl_packet::fd, FILEXIO_IOCTL, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, IOCTL_BUF_SIZE, NULL, packet, sbuff, SifCallRpc(), SignalSema(), and WaitSema().
Referenced by fileXioInit().
int fileXioIoctl2 | ( | int | fd, |
int | command, | ||
void * | arg, | ||
unsigned int | arglen, | ||
void * | buf, | ||
unsigned int | buflen | ||
) |
Definition at line 1055 of file fileXio_rpc.c.
References _fxio_intr(), _intr_data, _lock(), _unlock(), fxio_ioctl2_packet::arg, fxio_ioctl2_packet::arglen, fxio_ioctl2_packet::buf, fxio_ioctl2_packet::buflen, cd0, command, CTL_BUF_SIZE, ENOPKG, fxio_ioctl2_packet::fd, FILEXIO_IOCTL2, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), fxio_ctl_intr(), FXIO_NOWAIT, NULL, packet, sbuff, SifCallRpc(), SifWriteBackDCache(), SignalSema(), and WaitSema().
Referenced by hddExpandFilesystem(), hddGetFilesystemList(), and hddMakeFilesystem().
int fileXioLseek | ( | int | fd, |
int | offset, | ||
int | whence | ||
) |
Definition at line 720 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, ENOPKG, fxio_lseek_packet::fd, FILEXIO_LSEEK, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, NULL, fxio_lseek_packet::offset, packet, sbuff, SifCallRpc(), SignalSema(), WaitSema(), and fxio_lseek_packet::whence.
Referenced by fileXioInit().
Definition at line 750 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, ENOPKG, FILEXIO_LSEEK64, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, NULL, packet, fxio_lseek64_return_pkt::pos_hi, fxio_lseek64_return_pkt::pos_lo, sbuff, SifCallRpc(), SignalSema(), and WaitSema().
Referenced by fileXioInit().
int fileXioMkdir | ( | const char * | pathname, |
int | mode | ||
) |
Definition at line 398 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, ENOPKG, FILEXIO_MKDIR, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, mode, NULL, packet, fxio_mkdir_packet::pathname, sbuff, SifCallRpc(), SignalSema(), and WaitSema().
Referenced by fileXioInit().
int fileXioMount | ( | const char * | mountpoint, |
const char * | mountstring, | ||
int | flag | ||
) |
Definition at line 319 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, ENOPKG, FILEXIO_MOUNT, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, fxio_mount_packet::mountpoint, NULL, packet, sbuff, SifCallRpc(), SignalSema(), and WaitSema().
Referenced by hddGetFilesystemList().
int fileXioOpen | ( | const char * | source, |
int | flags, | ||
... | |||
) |
Definition at line 581 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, ENOPKG, FILEXIO_OPEN, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), fxio_open_packet::flags, FXIO_NOWAIT, mode, NULL, packet, sbuff, SifCallRpc(), SignalSema(), and WaitSema().
Referenced by fileXioInit(), hddExpandFilesystem(), hddGetFilesystemList(), and hddMakeFilesystem().
|
static |
Definition at line 114 of file fileXio_rpc.c.
References fileXioDopen(), and NULL.
Referenced by fileXioInit().
int fileXioRead | ( | int | fd, |
void * | buf, | ||
int | size | ||
) |
Definition at line 647 of file fileXio_rpc.c.
References _intr_data, _lock(), _unlock(), cd0, ENOPKG, fxio_read_packet::fd, FILEXIO_READ, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, IS_UNCACHED_SEG, packet, recv_intr(), sbuff, SifCallRpc(), SifWriteBackDCache(), SignalSema(), fxio_read_packet::size, and WaitSema().
Referenced by fileXioInit().
|
static |
Definition at line 133 of file fileXio_rpc.c.
References fileXioDread(), fill_stat(), iox_dirent_t::name, NULL, and iox_dirent_t::stat.
Referenced by fileXioInit().
int fileXioReadlink | ( | const char * | source, |
char * | buf, | ||
int | buflen | ||
) |
Definition at line 526 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), fxio_readlink_packet::buflen, cd0, ENOPKG, FILEXIO_READLINK, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, IS_UNCACHED_SEG, NULL, packet, sbuff, SifCallRpc(), SifWriteBackDCache(), SignalSema(), fxio_readlink_packet::source, and WaitSema().
int fileXioRemove | ( | const char * | pathname | ) |
Definition at line 449 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, ENOPKG, FILEXIO_REMOVE, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, NULL, packet, fxio_pathsel_packet::pathname, sbuff, SifCallRpc(), SignalSema(), and WaitSema().
Referenced by fileXioInit(), and hddRemoveFilesystem().
int fileXioRename | ( | const char * | source, |
const char * | dest | ||
) |
Definition at line 474 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, fxio_rename_packet::dest, ENOPKG, FILEXIO_RENAME, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, NULL, packet, sbuff, SifCallRpc(), SignalSema(), fxio_rename_packet::source, and WaitSema().
Referenced by fileXioInit().
|
static |
Definition at line 158 of file fileXio_rpc.c.
Referenced by fileXioInit().
int fileXioRmdir | ( | const char * | pathname | ) |
Definition at line 424 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, ENOPKG, FILEXIO_RMDIR, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, NULL, packet, fxio_pathsel_packet::pathname, sbuff, SifCallRpc(), SignalSema(), and WaitSema().
Referenced by fileXioInit().
void fileXioSetBlockMode | ( | int | blocking | ) |
Definition at line 1132 of file fileXio_rpc.c.
References fileXioBlockMode.
int fileXioSetRWBufferSize | ( | int | size | ) |
Definition at line 1137 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, ENOPKG, FILEXIO_SETRWBUFFSIZE, fileXioCompletionSema, fileXioInit(), NULL, packet, sbuff, SifCallRpc(), SignalSema(), fxio_rwbuff::size, and WaitSema().
void fileXioStop | ( | void | ) |
Definition at line 250 of file fileXio_rpc.c.
References cd0, FILEXIO_STOP, fileXioInit(), sbuff, and SifCallRpc().
int fileXioSymlink | ( | const char * | source, |
const char * | dest | ||
) |
Definition at line 500 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, fxio_rename_packet::dest, ENOPKG, FILEXIO_SYMLINK, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, NULL, packet, sbuff, SifCallRpc(), SignalSema(), fxio_rename_packet::source, and WaitSema().
int fileXioSync | ( | const char * | devname, |
int | flag | ||
) |
Definition at line 874 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, ENOPKG, FILEXIO_SYNC, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, NULL, packet, sbuff, SifCallRpc(), SignalSema(), and WaitSema().
int fileXioUmount | ( | const char * | mountpoint | ) |
Definition at line 346 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, ENOPKG, FILEXIO_UMOUNT, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, fxio_unmount_packet::mountpoint, NULL, packet, sbuff, SifCallRpc(), SignalSema(), and WaitSema().
Referenced by hddGetFilesystemList().
int fileXioWaitAsync | ( | int | mode, |
int * | retVal | ||
) |
Definition at line 1096 of file fileXio_rpc.c.
References ENOPKG, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_COMPLETE, FXIO_INCOMPLETE, FXIO_NOWAIT, FXIO_WAIT, mode, NULL, PollSema(), sbuff, SignalSema(), UNCACHED_SEG, and WaitSema().
int fileXioWrite | ( | int | fd, |
const void * | buf, | ||
int | size | ||
) |
Definition at line 678 of file fileXio_rpc.c.
References _fxio_intr(), _lock(), _unlock(), cd0, ENOPKG, fxio_write_packet::fd, FILEXIO_WRITE, fileXioBlockMode, fileXioCompletionSema, fileXioInit(), FXIO_NOWAIT, IS_UNCACHED_SEG, NULL, packet, sbuff, SifCallRpc(), SifWriteBackDCache(), SignalSema(), fxio_write_packet::size, and WaitSema().
Referenced by fileXioInit().
|
static |
Definition at line 84 of file fileXio_rpc.c.
References iox_stat_t::atime, iox_stat_t::ctime, iox_stat_t::hisize, io_to_posix_time(), iox_to_posix_mode(), iox_stat_t::mode, iox_stat_t::mtime, and iox_stat_t::size.
Referenced by fileXioGetstatHelper(), and fileXioReaddirHelper().
|
static |
Definition at line 977 of file fileXio_rpc.c.
References fxio_ctl_return_pkt::buf, fxio_ctl_return_pkt::dest, fileXioCompletionSema, iSignalSema(), fxio_ctl_return_pkt::len, and UNCACHED_SEG.
Referenced by fileXioDevctl(), and fileXioIoctl2().
|
static |
|
static |
Definition at line 67 of file fileXio_rpc.c.
References FIO_S_IFDIR, FIO_S_IFREG, FIO_S_IRGRP, FIO_S_IROTH, FIO_S_IRUSR, FIO_S_IWGRP, FIO_S_IWOTH, FIO_S_IWUSR, FIO_S_IXGRP, FIO_S_IXOTH, and FIO_S_IXUSR.
Referenced by fill_stat().
|
static |
Definition at line 637 of file fileXio_rpc.c.
References rests_pkt::ebuf, rests_pkt::ebuffer, rests_pkt::esize, fileXioCompletionSema, iSignalSema(), rests_pkt::sbuf, rests_pkt::sbuffer, rests_pkt::ssize, and UNCACHED_SEG.
Referenced by fileXioRead().
|
static |
Definition at line 34 of file fileXio_rpc.c.
Referenced by fileXioDevctl(), fileXioIoctl2(), and fileXioRead().
|
extern |
Referenced by fileXioInit().
|
static |
Definition at line 44 of file fileXio_rpc.c.
Referenced by _lock(), _unlock(), fileXioExit(), and fileXioInit().
|
static |
Definition at line 32 of file fileXio_rpc.c.
Referenced by fileXioChdir(), fileXioChStat(), fileXioClose(), fileXioCopyfile(), fileXioDclose(), fileXioDevctl(), fileXioDopen(), fileXioDread(), fileXioExit(), fileXioFormat(), fileXioGetDeviceList(), fileXioGetdir(), fileXioGetStat(), fileXioInit(), fileXioIoctl(), fileXioIoctl2(), fileXioLseek(), fileXioLseek64(), fileXioMkdir(), fileXioMount(), fileXioOpen(), fileXioRead(), fileXioReadlink(), fileXioRemove(), fileXioRename(), fileXioRmdir(), fileXioSetRWBufferSize(), fileXioStop(), fileXioSymlink(), fileXioSync(), fileXioUmount(), and fileXioWrite().
|
static |
Definition at line 36 of file fileXio_rpc.c.
Referenced by fileXioChdir(), fileXioChStat(), fileXioClose(), fileXioCopyfile(), fileXioDclose(), fileXioDevctl(), fileXioDopen(), fileXioDread(), fileXioFormat(), fileXioGetDeviceList(), fileXioGetdir(), fileXioGetStat(), fileXioInit(), fileXioIoctl(), fileXioIoctl2(), fileXioLseek(), fileXioLseek64(), fileXioMkdir(), fileXioMount(), fileXioOpen(), fileXioRead(), fileXioReadlink(), fileXioRemove(), fileXioRename(), fileXioRmdir(), fileXioSetBlockMode(), fileXioSymlink(), fileXioSync(), fileXioUmount(), fileXioWaitAsync(), and fileXioWrite().
|
static |
Definition at line 37 of file fileXio_rpc.c.
Referenced by _fxio_intr(), fileXioChdir(), fileXioChStat(), fileXioClose(), fileXioCopyfile(), fileXioDclose(), fileXioDevctl(), fileXioDopen(), fileXioDread(), fileXioExit(), fileXioFormat(), fileXioGetDeviceList(), fileXioGetdir(), fileXioGetStat(), fileXioInit(), fileXioIoctl(), fileXioIoctl2(), fileXioLseek(), fileXioLseek64(), fileXioMkdir(), fileXioMount(), fileXioOpen(), fileXioRead(), fileXioReadlink(), fileXioRemove(), fileXioRename(), fileXioRmdir(), fileXioSetRWBufferSize(), fileXioSymlink(), fileXioSync(), fileXioUmount(), fileXioWaitAsync(), fileXioWrite(), fxio_ctl_intr(), and recv_intr().
|
static |
Definition at line 35 of file fileXio_rpc.c.
Referenced by fileXioExit(), and fileXioInit().
|
static |
Definition at line 33 of file fileXio_rpc.c.
Referenced by fileXioChdir(), fileXioChStat(), fileXioClose(), fileXioCopyfile(), fileXioDclose(), fileXioDevctl(), fileXioDopen(), fileXioDread(), fileXioFormat(), fileXioGetDeviceList(), fileXioGetdir(), fileXioGetStat(), fileXioIoctl(), fileXioIoctl2(), fileXioLseek(), fileXioLseek64(), fileXioMkdir(), fileXioMount(), fileXioOpen(), fileXioRead(), fileXioReadlink(), fileXioRemove(), fileXioRename(), fileXioRmdir(), fileXioSetRWBufferSize(), fileXioStop(), fileXioSymlink(), fileXioSync(), fileXioUmount(), fileXioWaitAsync(), and fileXioWrite().