lkml.org 
[lkml]   [1999]   [Jan]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: User vs. Kernel (was: To be smug, or not to be smug, that is the
Anthony Barbachan wrote:

> It appears to me that the only efficient way of implementing an event
> based API would be if an assigned function in a user's program were
> called whenever data became available for a particular file handle
> being monitored. For example if a driver finished retrieving data
> from a device, in an efficient event based model, it would then call
> whatever function in a user space program was assigned to that event
> on that filehandle passing it the data so that it can be processed
> immediately or semi-immediately (having the function processed as soon
> as the process makes its way through the scheduler). And for this
> implementation I do not see how you could implement this in user
> space.

There is a mechanism in Linux for this, added a few months ago.
See fcntl(fd, F_SETSIG, ...) and real time signals.

-- Jamie

-
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:49    [W:0.037 / U:1.388 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site