long ioctl (
long fd,
long com,
long arg
)
|
Arguments
fd |
File descriptor returned by a preceding call to open() |
com |
Control command to be performed (macro defined in sys\ioctl.h) |
arg |
Control command argument |
Return value
1 is returned when successful, 0 otherwise.
Explanation
ioctl() executes control commands (i.e. set baud, reopen, etc.)
on the PlayStation I/O devices (ie tty, bu, etc). The Control Command macros
are defined in include\sys\ioctl.h. Refer to the I/O Control Management
section of the Kernel Management chapter for more information.
See also
open(), read(), write(),
close()
|