in what context does NKE operate?
in what context does NKE operate?
- Subject: in what context does NKE operate?
- From: eveningnick eveningnick <email@hidden>
- Date: Mon, 13 Dec 2010 12:33:29 -0800
Hello
I am writing a socket NKE filter (my first kernel code on mac), and
have some questions.
In what context (or rather in whose thread) does the callback code
(functions like sf_bind_func) operate? What if i am waiting there for
a usermode process to send me some command via kernel_control? What
else will freeze, except my function? the whole networking subsystem?
In what context myNKE_start() and myNKE_stop() are executed? What if i
perform some lengthy operations in there?
What about kernel_control's callback functions? If i am, for example,
establishing a connection with a remote host (which is not a quick
action), from "EPHandleGetSockOpt", will only usermode process, which
called "getsockopt", freeze? Or something else will degrade as well?
What is the common rule to perform such operations? Creating my own
thread and waiting for callbacks from it?
Thank you
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden