lkml.org 
[lkml]   [1999]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectAsync user space notification from kernel?
Hi all,

What is the best way to have the kernel notify a user space daemon
that some event has occured without user space resorting to polling an
ioctl(ugh)?

Presumably, I could create a /dev/foo device and have the user space
daemon sleep forever in select(2) till the kernel does something, but
this would require I create a new custom device, which I'd rather not do
for something that seems so trivial.

Furthermore, since /proc doesn't contain _real_ files, but auto-created
ones, presumably a select on a /proc entry would be disappointing.

Anybody have any other good ideas? This will be really cool when I
get it working. :) Please CC me directly on replies, since I am not
currently subscribed.

-Erik

--
Erik B. Andersen Web: http://www.xmission.com/~andersen/
email: andersee@debian.org
--This message was written using 73% post-consumer electrons--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.038 / U:0.788 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site