Re: Regarding ioctl()

2012-12-27 Thread Tobias Boege
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


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Regarding ioctl()

2012-12-27 Thread Rahul Bedarkar
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 ?


Thanks,
Rahul Bedarkar
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies