[lkml]   [2001]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectre: scheduling callbacks in user space triggered via kernel....
Ashok wrote:
> Is there a method to schedule user mode code from
> kernel agent? ...
> windows 2000 offers 2 such facilities. (APC or async
> procedure calls) where a thread can block and when
> ready will be woken via the kernel agent and can run a
> user supplied function.
> or a method to bind a function to a file handle, when
> there is Completed IO, the kernel would call the
> registered function with a parameter of the buffer
> submitted for IO.

The traditional Unix way might be for user process to
call one of the blocking functions (read(), poll(), sigwait(), etc),
and have the kernel unblock the process in the usual way.

There is support for real async I/O on the horizon; see the SGI patch
at if you need async I/O today.
Not sure this is what you're after, though.

Can you provide an example of how you want to use this?

For those who haven't read about this NT stuff, see
Even AS/400 is getting into this stuff; see

- Dan
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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