/dev/usb/shared

From WiiBrew
< /dev‎ | usb
Jump to navigation Jump to search

/dev/usb/shared is an internal IOS device which is only used by the WFSI module in IOS59.

Only IOS_OPEN, IOS_CLOSE and IOS_IOCTL are valid commands. The other commands immediately return IPC_EINVAL (-4). Additionally, this device cannot be opened from the PPC (IPC_EACCES).

There is only a single ioctl for this device.

Ioctl Name Input Output Notes
1 ? None 8 bytes Unknown.

This ioctl checks the size of the resource manager and fails with IPC_EINVAL if there is a mismatch. Also, the output buffer must be in mem2.

/dev/wfsi uses this ioctl for AllocDecryptBufferAddress.