From: jeshkumar555@gmail.com (jeshkumar555@gmail.com)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Re: user space device drivers
Date: Tue, 14 May 2013 21:13:11 +0530 [thread overview]
Message-ID: <51925b8d.0aec440a.5ee4.fffff654@mx.google.com> (raw)
Hi :),
One more mechanism I know is passing real time signal to the userspace process using process PID. So whenever there is an interrupt in kernel module, it passes the signal to userspace process. You can handle the signal in US process.
And I passed the PID to kernel module using IOCTL.
Let me know if anyone finds problem in handling interrupts like this.
Thanks
Regards,
Jeshwanth
Bengaluru
----- Reply message -----
From: "Prabhu nath" <gprabhunath@gmail.com>
Date: Tue, May 14, 2013 3:29 pm
Subject: user space device drivers
To: "Gergely Buday" <gbuday@gmail.com>
Cc: "kernelnewbies" <kernelnewbies@kernelnewbies.org>
One that I know is through proc interface where the interrupt info is
lodged in a file in /proc and the user code keeps polling on this file.
Exact use of this is to be looked for.
On Tue, May 14, 2013 at 3:24 PM, Gergely Buday <gbuday@gmail.com> wrote:
> Prabhu nath wrote:
>
> > But if the device has to generate an interrupt on the reception of the
> data
> > then it is best for the driver code to be in the kernel space waiting for
> > the data, rather than in the user space because there is no efficient
> > mechanism till now for the control to be transferred to the waiting user
> > space code on the reception of the interrupt.
>
> What are the curently available mechanisms for an interrupt to
> propagate into user space?
>
> Is there one that affects the scheduler?
>
> - Gergely
>
--
Regards,
Prabhunath G
Linux Trainer
Bangalore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130514/23e69e18/attachment.html
next reply other threads:[~2013-05-14 15:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-14 15:43 jeshkumar555 [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-05-13 19:52 user space device drivers Gergely Buday
2013-05-14 8:17 ` Sannu K
2013-05-14 8:18 ` Gergely Buday
2013-05-14 15:51 ` richard -rw- weinberger
2013-05-14 15:55 ` Greg Freemyer
2013-05-14 9:15 ` richard -rw- weinberger
2013-05-14 9:46 ` Prabhu nath
2013-05-14 9:54 ` Gergely Buday
2013-05-14 9:59 ` Prabhu nath
2013-05-14 15:13 ` richard -rw- weinberger
2013-05-14 10:15 ` Pietro Paolini
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=51925b8d.0aec440a.5ee4.fffff654@mx.google.com \
--to=jeshkumar555@gmail.com \
--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).