asmlinkage long sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) {

The ioctl code (cmd) is passed to an opened file identified by its file descriptor (fd) in the form of a more or less easily readable pre-processor constant. A third parameter (arg) transfers further information (detailed tables of all ioctls and parameters supported by the kernel are provided in numerous manuals on system programming). Section 6.5.9 discusses the kernel-side implementation of ioctls in more detail.

Continue reading here: Network Cards and Other Devices

Was this article helpful?

0 0