vitasdk
Documentation of the vitasdk

Detailed Description

Exports for Kernel.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceIofilemgrForDriver_stub



Functions

int ksceIoDevctl (const char *dev, unsigned int cmd, void *indata, int inlen, void *outdata, int outlen)
 Send a devctl command to a device. More...
 

Function Documentation

◆ ksceIoDevctl()

int ksceIoDevctl ( 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
ksceIoDevctl("ux0:", 0x3001, NULL, 0, &info, sizeof(SceIoDevInfo));
int ksceIoDevctl(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