Re: Async user space notification from kernel?

Mark Hahn (hahn@coffee.psychology.mcmaster.ca)
Thu, 26 Aug 1999 16:42:42 +0000 ( )


> that the file had "changed". This is, presumably, because there isn't
> really a file there, just some text that was generated on read.

right; you want a change callback, which imples that someone has to put
a hook into the change code (in this case, the arp list).

> So my question boils down to: How can user space find out asyncronously
> when a button gets pushed, without resorting to ugly stuff like polling?

who not use a _blocking_ call? it can be anything you want; ioctl,
read, touch an mmaped page, etc. your device just blocks the process
until some condition is met, then wakes it. since you control the event,
there's no issue of inserting change callbacks into extant code.

regards, mark hahn.

-
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/