Dec. 27, 2012
11:13 a.m.
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