In computing, the system call ioctl (IPA: ), found on Unix-like systems, allows an application to control or communicate with a device driver outside the usual read/write of data. This call originated in AT&TUnix version 7. Its name abbreviates the phrase Input/output control.An ioctl call takes as parameters:an open file descriptora request code numbereither an integer value, possibly unsigned (going to the driver) ora pointer to data (either going to the driver or to come back from it).The kernel generally dispatches an ioctl straight to the device driver, which can interpret the request number and data in whatever way required. The writers of each driver document request numbers for that particular driver and provide them as constants in a header file.
See more at Wikipedia.org...