site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=ceInhNSx8ZDW0r6Ns1tOjqATljJYdxQPAOEN+O5yl4c=; b=Wy7o6a/upBAHWroXOaMD7eE1mpFRFntBg8CvZXKImgHX2BvBaj5sI7qklfiphDCb1C cGKH5kwn0tl9Bi38yY0XteGQVvFhLrbeW6KQpLJbYoYveo5wCA+nen8e8bB7l71U/tg4 6nhkD/AR+t7z5M4HDUHaXRSKL56pFmvPBNBiA= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=jhYoUS8doVpccHoH2xqtG3kkqp8ZT8zquTXZa6qTJN3V95gN1KLNWc/TrKyhfYMwVv N7qxcn6iPEieLLMFwWHZAEEGcvnjXATB+w+WX0eEtWAjBnDEOB57rKAjUaZywzBEjy5f BbT+GmHww/H+lBVjYqPIl5fXvGoCcGu9qPsyw= 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
eveningnick eveningnick