lkml.org 
[lkml]   [2001]   [May]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subjectscheduling callbacks in user space triggered via kernel....
Date
Hello Gurus...

Is there a method to schedule user mode code from kernel agent?

basically think that when some work is to be scheduled in user mode, the app
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.

I can think of either using a shared buffer to communicate between
kernel/user space and use a dedicated thread to do this task.

But i would keep a page pinned for each process, and this may be limiting...

are there any examples of code in kernel that would do this?

if someone would not beat me up. for quoting this...

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.

any ideas would be greatly appreciated.

ashokr

-
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.029 / U:0.616 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site