Sending events to user-mode

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

 



I'm looking for a way to have a driver notify a user-mode process or
thread that an event has occurred.  It looked like eventfd() could be
useful but it doesn't look like eventfd_signal() is exported to modules.
So I'm not exactly sure what eventfd was intended for.

Another option might be to send a process a signal with send_sig() but
then I'd have to resort to some other trickery so the process could
figure out which device triggered the event, and which event from the
device was triggered.

So none of the methods I've found seem ideal for what I want to do.  My
device has multiple high speed I/O channels that will likely be mmapped
to user-mode for zero-copy data transfers.  I'd like a way to send
events to the user-mode process to indicate things like an acquisition
has started/stopped, N samples have arrived, etc.  Am I missing some
options, or are there better ways to do this?

--
Shawn

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[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