From owner-freebsd-current@FreeBSD.ORG Wed Jun 23 08:21:36 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2440B16A4CE for ; Wed, 23 Jun 2004 08:21:36 +0000 (GMT) Received: from phoenix.net.informatik.tu-muenchen.de (phoenix.net.informatik.tu-muenchen.de [131.159.14.1]) by mx1.FreeBSD.org (Postfix) with SMTP id AA8EA43D2F for ; Wed, 23 Jun 2004 08:21:32 +0000 (GMT) (envelope-from jw@net.in.tum.de) Received: (qmail 3062 invoked from network); 23 Jun 2004 08:21:14 -0000 Received: from unknown (HELO falcon.net.informatik.tu-muenchen.de) (131.159.14.30) by phoenix.net.informatik.tu-muenchen.de with SMTP; 23 Jun 2004 08:21:14 -0000 Received: from falcon.net.informatik.tu-muenchen.de (localhost [127.0.0.1]) id i5N8LEHK035704 for ; Wed, 23 Jun 2004 10:21:14 +0200 (CEST) (envelope-from jw@falcon.net.informatik.tu-muenchen.de) Received: (from jw@localhost)i5N8LEQh035703 for freebsd-current@freebsd.org; Wed, 23 Jun 2004 10:21:14 +0200 (CEST) (envelope-from jw) Date: Wed, 23 Jun 2004 10:21:14 +0200 From: Joerg Wallerich To: freebsd-current@freebsd.org Message-ID: <20040623082114.GA35666@net.in.tum.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: opt_global.h for kernel modules X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Joerg Wallerich List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jun 2004 08:21:36 -0000 Hi, while trying to enable device polling in the nge NIC driver I found that the device polling code is not activated in the driver, if it's compiled as KLD. After a bit of digging I found, that 'options DEVICE_POLLING' leads to a define in opt_global.h, but this hedaer file is not included when building KLDs. In this case this leads to different behavior of the driver depending on it being build as KLD or not. Is this intentional? Cheers, Joerg -- ---------------------------------------------------------------- - Joerg Wallerich - jw@net.in.tum.de - - Technische Universitaet Muenchen - ----------------------------------------------------------------