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 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

§Return value

0 on success, < 0 on error