site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Eqys5hghwGI4+lFY5/mBAnqsd4dzdlg4n7rIvLhLAWkIO8zG/ynStdqRiJULTQTcOlvX5cVT+BTrC7LwVMaIyi/Ot7zOB8UIVY59Aq/BNqSWfLxIhR8if0rcC/4bajGj/KtvRNHK7+JGLJCCJP+VNlYrqZ78lBC3rdUM+3TZmNA= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aF+ITR3pZIxfYZS3JhfOCAwOwJsImyMl/YYsSaIHd2FE6oRO5OvayVqqIekcjsPvwT/8gMmwdIuu7OKJML3Ed/lthfaNO/3rC6JSqrPEypyz4mVk3ApUtzMOLZyvAV+cEAPzpX/ReBN5sXaUfFm/fCZUgcXbM0Our733P0hrIQs= On Mar 15, 2007, at 10:14 AM, Bhavesh Davda wrote:
Yeah, I was trying to avoid having 2 system calls for every read(2): a read(2) and an ioctl(2)/setsockopt(2), to get this functionality. What "functionality" are you actually trying to achieve? There are control flow models available for most reasonable behaviours already; it feels like you have decided on one that history has so far rejected...
All I would like is the ability to run some code in my NKE when the queue that I was sending mbufs to via ctl_enqueuembuf() has been drained. Now one could argue that this "code" doesn't have to be in the NKE and why doesn't the user app doing the read(2) run this code when read returns EAGAIN. Just suffice it to say that what I'm doing is fairly specialized and I don't know of a historical precedent that fits the pattern. That's why I tried to boil down the question to a simple one. Thanks! -- Bhavesh P. Davda _______________________________________________ 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... On 3/15/07, Michael Smith <drivers@mu.org> wrote: This email sent to site_archiver@lists.apple.com