Function psp::sys::sceIoIoctl
source · #[no_mangle]
pub unsafe extern "C" fn sceIoIoctl(
fd: SceUid,
cmd: u32,
indata: *mut c_void,
inlen: i32,
outdata: *mut c_void,
outlen: i32
) -> i32
Expand description
Perform an ioctl on a device.
§Parameters
fd
: Opened file descriptor to ioctl tocmd
: The command to send to the deviceindata
: A data block to send to the device, if NULL sends no datainlen
: Length of indata, if 0 sends no dataoutdata
: A data block to receive the result of a command, if NULL receives no dataoutlen
: Length of outdata, if 0 receives no data
§Return value
0 on success, < 0 on error