From owner-freebsd-hackers Wed Mar 11 13:06:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA09853 for freebsd-hackers-outgoing; Wed, 11 Mar 1998 13:06:50 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from isvara.net (root@[130.88.148.77]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA09784 for ; Wed, 11 Mar 1998 13:06:34 -0800 (PST) (envelope-from freebsd@challenge.isvara.net) Received: from challenge.isvara.net ([130.88.66.5]) by isvara.net (8.8.7/8.8.7) with ESMTP id VAA01666 for ; Wed, 11 Mar 1998 21:06:11 GMT Message-ID: <3506FCD4.7F0A0BD@challenge.isvara.net> Date: Wed, 11 Mar 1998 21:06:28 +0000 From: freebsd@isvara.net X-Mailer: Mozilla 4.04 [en] (Win95; I) MIME-Version: 1.0 To: FreeBSD Hackers Subject: Re: userconfig data -> linker set -> ELF segment References: <199803111011.CAA22528@dingo.cdrom.com> <199803111444.HAA10346@narnia.plutotech.com> <19980311162228.43166@follo.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Eivind Eklund wrote: > > Exactly. Don't use a linker set at all. Convert all drivers to > > LKMs, load they "probe" section of all LKMs, have an entry point > > in the probe section register the driver with userconfig. Just an idea I had: would it not be possible to load a word (or list of words) at a know offset in the LKM specifying the PCI Vendor ID and PCI Device IDs the device driver is interested in? That way the OS can handle all the probing is a much faster manner, and before the drivers load, such that so lurky probe code gets called. This would seem much more efficient, but [in this simplified model,] would not handle cases where one device driver could handle multiple Vendor IDs and Device IDs (which is where lists come in). OK, and also you couldn't execute any other code in the probe section, as there wouldn't be one (there could be a post-probe function). There would also have to be a list of device names to match the Device IDs. This may not be too hard to implement, and IMHO it makes sense (perhaps only for PCI). Thanks, Dan _____________________________________ Daniel J Blueman BSc Computation, UMIST, Manchester Email: blue@challenge.isvara.net Web: http://www.challenge.isvara.net/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message