From owner-freebsd-hackers Wed Sep 25 6:54:37 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E25237B401 for ; Wed, 25 Sep 2002 06:54:36 -0700 (PDT) Received: from mailhost.iprg.nokia.com (mailhost.iprg.nokia.com [205.226.5.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id C94B043E7B for ; Wed, 25 Sep 2002 06:54:34 -0700 (PDT) (envelope-from vijay@iprg.nokia.com) Received: from darkstar.iprg.nokia.com (darkstar.iprg.nokia.com [205.226.5.69]) by mailhost.iprg.nokia.com (8.9.3/8.9.3-GLGS) with ESMTP id GAA27507 for ; Wed, 25 Sep 2002 06:54:34 -0700 (PDT) X-Delivered-For: Received: (from root@localhost) by darkstar.iprg.nokia.com (8.11.0/8.11.0-DARKSTAR) id g8PDsXL18573 for ; Wed, 25 Sep 2002 06:54:33 -0700 X-mProtect: <200209251354> Nokia Silicon Valley Messaging Protection Received: from UNKNOWN (172.21.23.230, claiming to be "iprg.nokia.com") by darkstar.iprg.nokia.com smtpdMfWlh5; Wed, 25 Sep 2002 06:54:30 PDT Message-ID: <3D91C011.6F564C34@iprg.nokia.com> Date: Wed, 25 Sep 2002 16:54:25 +0300 From: vijay singh Organization: nokia X-Mailer: Mozilla 4.75 [en]C-CCK-MCD {Nokia} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: hackers@FreeBSD.ORG Subject: Re: kqueue References: <20020925081253.GA98975@xs4all.nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, this is in no way related to the kqueue question asked below but to event notification mechanisms in general. I was wondering if there is some paper or design that talks about how such a facility could be provided in a Unix type kernel. Kqueue is fairly recent, and I dont know what its requirements are but I'm thinking of providing this for an old 2.x FreeBSD system. Any ideas, pointers or suggestions are appreciated. vijay Michel Oosterhof wrote: > > Hello. > > Recently I started looking into kqueue(2), and to get to know the > interface better I attempted to turn usr.sbin/moused into a kqueue > program (replacing the main select() loop that reads the mouse > device). > > Now I thought I understood the interface, I requested a kqueue, but > as soon as I add an event for monitoring I get an 'Operation not > permitted' error. Does anyone know if this is caused because > kqueue() only supports FFS? The mouse device is on devfs (I'm running > -CURRENT, btw). > > I've got one more question, actually a fact that surprises me, it > seems that tail(1) is the only place in the base system that actually > uses kqueue. Is there a reason for this? I read in most places > kqueue() is more efficient, scalable, etc. I'm sure code like ftpd > or other services would benefit. (And i'm sure Apache could use it > too). > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message