From: tobias@gambas-buch.de (Tobias Boege)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Regarding ioctl()
Date: Thu, 27 Dec 2012 12:13:45 +0100 [thread overview]
Message-ID: <20121227111345.GC663@aurora> (raw)
In-Reply-To: <CA+NV+V=5PCJqL47XArNV8RZYBdW--R3mhnPLfNKpG5usE4tmdQ@mail.gmail.com>
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
prev parent reply other threads:[~2012-12-27 11:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-27 10:30 Regarding ioctl() Rahul Bedarkar
2012-12-27 11:13 ` Tobias Boege [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121227111345.GC663@aurora \
--to=tobias@gambas-buch.de \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).