lkml.org 
[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....
Date
From
> Is there a method to schedule user mode code from kernel agent?

You can wake user processes,send them signals etc but ingeneral its not
a good idea

> registers with the kernel mode agent with a function/parm to run, then when
> the callback is appropriate the kerenl agent triggers this callback to
> happen.

The unix model is much more that the app does

while(1)
{
get_event(fd);
switcH(event)
{
..
...
}
}

> 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 b_end_io callback can possibly be used, or Ben's asynchronosu callbacks,
but that deals with kernel level completion.

Alan

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

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