From owner-freebsd-questions@FreeBSD.ORG Thu Oct 27 09:19:43 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4169716A425 for ; Thu, 27 Oct 2005 09:19:43 +0000 (GMT) (envelope-from ertr1013@student.uu.se) Received: from pne-smtpout1-sn1.fre.skanova.net (pne-smtpout1-sn1.fre.skanova.net [81.228.11.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id D064543D46 for ; Thu, 27 Oct 2005 09:19:42 +0000 (GMT) (envelope-from ertr1013@student.uu.se) Received: from falcon.midgard.homeip.net (212.181.162.201) by pne-smtpout1-sn1.fre.skanova.net (7.2.060.1) id 435CB1340011F9D1 for freebsd-questions@freebsd.org; Thu, 27 Oct 2005 11:19:41 +0200 Received: (qmail 89753 invoked by uid 1001); 27 Oct 2005 11:19:40 +0200 Date: Thu, 27 Oct 2005 11:19:40 +0200 From: Erik Trulsson To: "ke.han" Message-ID: <20051027091940.GA89707@falcon.midgard.homeip.net> Mail-Followup-To: "ke.han" , freebsd-questions@freebsd.org References: <43609966.8030907@redstarling.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43609966.8030907@redstarling.com> User-Agent: Mutt/1.5.11 Cc: freebsd-questions@freebsd.org Subject: Re: kqueue and polling ... are they related? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2005 09:19:43 -0000 On Thu, Oct 27, 2005 at 05:09:58PM +0800, ke.han wrote: > Dear list, > I will be using kqueue on freeBSD 6.0-rc1 and need to understand the > relationship between kqueue and polling since polling support requires > explicite enabling and choosing the correct ethernet drivers, etc... > First, is there a relationship between kqueue and polling? The kqueue > man page refers to the poll man page. The polling man page does not > refer to either poll or kqueue. > So, does kqueue require polling to be enabled? Any elaboration would be > appreciated. > thanks, ke han The kqueue(2) manpage does refer to the manpage for the poll(2) system call, which is an older alternative to using kqueue. The same goes for select(2), which is also an alternative to using kqueue(2) or poll(2). None of these have any relation to polling of the network interfaces as described in the polling(4) manpage. The only connection between poll(2) and polling(4) is that they have similar names. So, to answer your question: No, you do not need to have polling enabled in order to use kqueue. -- Erik Trulsson ertr1013@student.uu.se