From owner-freebsd-hackers Wed Mar 11 09:50:53 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA17578 for freebsd-hackers-outgoing; Wed, 11 Mar 1998 09:50:53 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA17568 for ; Wed, 11 Mar 1998 09:50:48 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id JAA21908; Wed, 11 Mar 1998 09:38:00 -0800 (PST) Received: from UNKNOWN(), claiming to be "current1.whistle.com" via SMTP by alpo.whistle.com, id smtpd021906; Wed Mar 11 09:37:55 1998 Date: Wed, 11 Mar 1998 09:33:34 -0800 (PST) From: Julian Elischer To: "Justin T. Gibbs" cc: Mike Smith , hackers@FreeBSD.ORG Subject: Re: userconfig data -> linker set -> ELF segment In-Reply-To: <199803111444.HAA10346@narnia.plutotech.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Exactly! My main idea is that all drivers should be lkms those that are linked in at compile time use a single linker set to call the exact same init() routines that would have been called when they were loaded as an lkm. I've been SLOWLY working towards this for a few years now :) Thats why most drivers now have such an init routine that it uses to add it's devsw entry. On Wed, 11 Mar 1998, Justin T. Gibbs wrote: > In article <199803111011.CAA22528@dingo.cdrom.com> you wrote: > >> > I was basically planning to look at distributing the userconfig device > >> > list as a linker set, to allow externally developed drivers to be > >> > added without having to edit a static list. I know how to do this > >> > now, but how easy is it to put it in a non-loaded segment later? > >> > >> This is hard. > >> > >> The problem is that you need to be able to agregate linker sets > >> at run time, not at link time. > > > > You're making things too difficult. 8) > > 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. > > Linker sets are a pain. > > -- > Justin > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message