![]() |
vitasdk
Documentation of the vitasdk
|
Exports for User. More...
Functions | |
| int | sceIoDevctl (const char *dev, unsigned int cmd, void *indata, int inlen, void *outdata, int outlen) |
| Send a devctl command to a device. | |
| int | sceIoIoctl (SceUID fd, unsigned int cmd, void *indata, int inlen, void *outdata, int outlen) |
| Perform an ioctl on a device. | |
| int | sceIoIoctlAsync (SceUID fd, unsigned int cmd, void *indata, int inlen, void *outdata, int outlen) |
| Perform an ioctl on a device. | |
Exports for User.
Include the header file in your project:
| int sceIoDevctl | ( | const char * | dev, |
| unsigned int | cmd, | ||
| void * | indata, | ||
| int | inlen, | ||
| void * | outdata, | ||
| int | outlen | ||
| ) |
Send a devctl command to a device.
| 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 |
| int sceIoIoctl | ( | SceUID | fd, |
| unsigned int | cmd, | ||
| void * | indata, | ||
| int | inlen, | ||
| void * | outdata, | ||
| int | outlen | ||
| ) |
Perform an ioctl on a device.
| 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 |
| int sceIoIoctlAsync | ( | SceUID | fd, |
| unsigned int | cmd, | ||
| void * | indata, | ||
| int | inlen, | ||
| void * | outdata, | ||
| int | outlen | ||
| ) |
Perform an ioctl on a device.
(asynchronous)
| 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 |