Re: Regarding ioctl()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux