vitasdk
Documentation of the vitasdk

Detailed Description

Exports for User.


Using this library in your project

Include the header file in your project:



Functions

int sceIoDevctl (const char *dev, unsigned int cmd, void *indata, int inlen, void *outdata, int outlen)
 Send a devctl command to a device. More...
 
int sceIoIoctl (SceUID fd, unsigned int cmd, void *indata, int inlen, void *outdata, int outlen)
 Perform an ioctl on a device. More...
 
int sceIoIoctlAsync (SceUID fd, unsigned int cmd, void *indata, int inlen, void *outdata, int outlen)
 Perform an ioctl on a device. More...
 

Function Documentation

◆ sceIoDevctl()

int sceIoDevctl ( const char *  dev,
unsigned int  cmd,
void *  indata,
int  inlen,
void *  outdata,
int  outlen 
)

Send a devctl command to a device.

Example: Sending a simple command to a device
sceIoDevctl("ux0:", 0x3001, NULL, 0, &info, sizeof(SceIoDevInfo));
int sceIoDevctl(const char *dev, unsigned int cmd, void *indata, int inlen, void *outdata, int outlen)
Send a devctl command to a device.
Definition: iofilemgr.h:17
Parameters
dev- String for the device to send the devctl to (e.g. "ux0:")
cmd- The command to send to the device
indata- A data block to send to the device, if NULL sends no data
inlen- Length of indata, if 0 sends no data
outdata- A data block to receive the result of a command, if NULL receives no data
outlen- Length of outdata, if 0 receives no data
Returns
0 on success, < 0 on error

◆ sceIoIoctl()

int sceIoIoctl ( SceUID  fd,
unsigned int  cmd,
void *  indata,
int  inlen,
void *  outdata,
int  outlen 
)

Perform an ioctl on a device.

Parameters
fd- Opened file descriptor to ioctl to
cmd- The command to send to the device
indata- A data block to send to the device, if NULL sends no data
inlen- Length of indata, if 0 sends no data
outdata- A data block to receive the result of a command, if NULL receives no data
outlen- Length of outdata, if 0 receives no data
Returns
0 on success, < 0 on error

◆ sceIoIoctlAsync()

int sceIoIoctlAsync ( SceUID  fd,
unsigned int  cmd,
void *  indata,
int  inlen,
void *  outdata,
int  outlen 
)

Perform an ioctl on a device.

(asynchronous)

Parameters
fd- Opened file descriptor to ioctl to
cmd- The command to send to the device
indata- A data block to send to the device, if NULL sends no data
inlen- Length of indata, if 0 sends no data
outdata- A data block to receive the result of a command, if NULL receives no data
outlen- Length of outdata, if 0 receives no data
Returns
0 on success, < 0 on error