sys_ioctl  [fs/ioctl.c]


Manipulates the underlying device parameters of special files. In particular, many operating characteristics of miscellaneous devices (e.g. terminals, cd-rom drives, floppy disk drives, modems, file systems, etc.) can be controlled with sys_ioctl requests.

Arguments

eax 54
ebx An open file descriptor.
ecx Command to execute. Refer to any of the following command groups for a detailed command reference for that particular device/interface:

General Networking / Network Layers / Sockets
Socket-level operations
Point-to-Point Protocol (PPP)
Internetwork Packet Exchnage Protocol (IPX)
AX.25 Protocol
Stallion multiport serial boards
Cyclades multiport serial boards
ATM Signaling Interface
ATM ARP Interface
ATM Lan Emulation Daemon
ATM TCP Driver
Classical IP over ATM
MPOA Client (MPC)
Universal TUN/TAP Device
Parallel Line IP (PLIP)
IP Multicast
EQL driver (IP serial links load-balancing)
Network Block Device (NBD)
File Systems
Generic File System
EXT2FS
SMBFS
AutoFS
DevFS
NCPFS
USBFS
Memory Technology Device (MTD)
CD-ROM / DVD-ROM / FDD / HD / SCSI / RAID / Magnetic Tape / RAW Devices
CD-ROM/DVD-ROM
Floppy Disk Drive (FDD)
HD/IDE
SCSI
RAID
Magnetic Tape
RAW devices
Console / Virtual Terminal / Keyboard
Terminal
Keyboard/Console
Virtual Terminal
HID / BlueZ / Wireless / I2C / CAPI / Watchdog / LP / RTC / RNG
Bluetooth
Common ISDN Application Programming Interface (CAPI)
I2C Bus
Wireless
Watchdog
Human Interface Device (HID)
Generic Parallel Printer Driver
Device Mapper
Generic Parallel Printer Driver
Generic Real Time Clock (RTC)
Parallel Port Device
Random Number Generator
OSS / DVB
Open Sound System
Digital Video Broadcasting
edx This parameter depends on the IOCTL command used. See above.

Return values

The return value depends on the IOCTL command used. See IOCTL commands description for more information (If not stated otherwise in the command`s description - return value of 0 indicates success, while negative errno value indicates failure).

Remarks

n/a

Compatibility

Some IOCTs may not be available in particular versions of the kernel.