From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 24 00:11:00 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F1E7116A40A for ; Wed, 24 Jan 2007 00:11:00 +0000 (UTC) (envelope-from newroswell@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id 8B92013C508 for ; Wed, 24 Jan 2007 00:11:00 +0000 (UTC) (envelope-from newroswell@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so15310uge for ; Tue, 23 Jan 2007 16:10:59 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=dG2lXRaBM6aSQEHTH03pRr9Ccxv+baJEAZNlb8NMXSsEQhY8juOo4MLn3zoeNrQZakl82n7yz4L0sYAi46L4QNzoRmZwFN9tricn8OeBP6dnGfriAAH5vr5Z92NxKs6ZnbgEp4XpLq93Y9phdn6liTo1k0zNy/H92ZEXEsg/1FM= Received: by 10.66.243.4 with SMTP id q4mr169569ugh.1169597459048; Tue, 23 Jan 2007 16:10:59 -0800 (PST) Received: by 10.67.92.10 with HTTP; Tue, 23 Jan 2007 16:10:58 -0800 (PST) Message-ID: <375baf50701231610x37f817dbrb8ae84b0ea3b6f3d@mail.gmail.com> Date: Tue, 23 Jan 2007 16:10:58 -0800 From: "Kevin Sanders" To: "John-Mark Gurney" , freebsd-hackers@freebsd.org In-Reply-To: <20070119055736.GC92003@funkthat.com> MIME-Version: 1.0 References: <200701191148.14198.doconnor@gsoft.com.au> <375baf50701181740y6434e763q9c5487fef81dfa87@mail.gmail.com> <20070119055736.GC92003@funkthat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: "Streaming" data from kernel to userland X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jan 2007 00:11:01 -0000 On 1/18/07, John-Mark Gurney wrote: > > Kevin Sanders wrote this message on Thu, Jan 18, 2007 at 17:40 -0800: > > Ivan, I'm basically doing something similar, and I have found that > adding > > kqueue support to your kernel module and making ioctl/read/write's is > very > > efficient. I'm a long time windows developer that has used I/O > Completion > > Ports, and I'm real impressed with kqueue api. It was a little daunting > > figuring out the kernel module side though. > > If you feeling like extending kqueue(9) to be more helpful, I'm more than willing to review and commit patches for it. > > I was able to add support by looking at code from if_tap.c, and recommend it for it's intended purpose to other aspiring kernal module authors. I would help with kqueue(9) if I could, but certainly can't write from a complete understanding of the subject any time soon. Kevin