Regarding ioctl()
Tobias Boege
tobias at gambas-buch.de
Thu Dec 27 06:13:45 EST 2012
On Thu, 27 Dec 2012, Rahul Bedarkar wrote:
> Hi,
>
> When ioctl() is called from user space, how device driver related to it
> comes into picture ? What is flow from user space to kernel space ?
>
You may want to just follow the calls down from the syscall handler in
fs/ioctl.c. For special devices and non-handled ioctls you will end up in
vfs_ioctl() which calls the ->f_op->unlocked_ioctl() method of the backing
struct file defined in the driver, supposedly.
Regards,
Tobi
More information about the Kernelnewbies
mailing list