From owner-freebsd-hackers Wed Apr 30 05:43:24 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id FAA24261 for hackers-outgoing; Wed, 30 Apr 1997 05:43:24 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id FAA24256 for ; Wed, 30 Apr 1997 05:43:21 -0700 (PDT) Received: (from msmith@localhost) by genesis.atrad.adelaide.edu.au (8.8.5/8.7.3) id WAA28705; Wed, 30 Apr 1997 22:13:16 +0930 (CST) From: Michael Smith Message-Id: <199704301243.WAA28705@genesis.atrad.adelaide.edu.au> Subject: Re: Unloading LKMs (was Re: A Desparate Plea for Help...) In-Reply-To: <199704301148.EAA22561@hub.freebsd.org> from Darren Reed at "Apr 30, 97 09:47:37 pm" To: avalon@coombs.anu.edu.au (Darren Reed) Date: Wed, 30 Apr 1997 22:13:16 +0930 (CST) Cc: bde@zeta.org.au, hackers@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Darren Reed stands accused of saying: > > > > _lkm_dev() shouldn't be touching the devsw's. Drivers need to manage > > the devsw's directly for the non-LKM case and should use identical > > code for the LKM case. This is debatable. > Why ? Why do we need to change something that already works ? The issue is that in 2.1.x, devsw entries were members of a compile-time-defined array. This is the traditional *nix edit-conf.c approach. 2.2 builds the devsw tables at link time using linker sets, and as such the devsw arrays are now arrays of pointers to devsw structures. This is a huge plus, in that one no longer has to mung the stuff in conf.c in order to add a new driver. Bruce's argument is that drivers should do their own management of devsw entries. I'm inclined to disagree, especially as there is no API for doing this; you are expected to grovel directly. It's probably worth checking with the last people that had their hands dirty in the LKM stuff. Rest assured though that the idea here is not to make any 'ad hoc' changes. 8) > With people suggesting more and more ad hoc changes, that mean more > work for me, I seriously have to wonder "is it worth the effort ?" *ahem* That's entirely the wrong attitude to be taking in a forum where improvement of the system is a principal issue. As a vendor representative, you're welcome (and expected) to stick up for your preferences; but intimating that we're all picking on you and that you might as well just pack up your toys and go home isn't very helpful. If you have a genuine beef with something that's proposed, make some noise about it. Chances are that if you get involved in the design phase, you can save yourself some work instead 8) Don't be afraid to suggest stuff either; input is _always_ welcome. > Darren -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au [[ ]] Genesis Software genesis@gsoft.com.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control. (ph) +61-8-8267-3493 [[ ]] Unix hardware collector. "Where are your PEZ?" The Tick [[