kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Regarding ioctl()
@ 2012-12-27 10:30 Rahul Bedarkar
  2012-12-27 11:13 ` Tobias Boege
  0 siblings, 1 reply; 2+ messages in thread
From: Rahul Bedarkar @ 2012-12-27 10:30 UTC (permalink / raw)
  To: kernelnewbies

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20121227/c99b965e/attachment.html 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Regarding ioctl()
  2012-12-27 10:30 Regarding ioctl() Rahul Bedarkar
@ 2012-12-27 11:13 ` Tobias Boege
  0 siblings, 0 replies; 2+ messages in thread
From: Tobias Boege @ 2012-12-27 11:13 UTC (permalink / raw)
  To: kernelnewbies

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-12-27 11:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-27 10:30 Regarding ioctl() Rahul Bedarkar
2012-12-27 11:13 ` Tobias Boege

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).