From owner-freebsd-current Fri Jan 3 12:00:41 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id MAA11085 for current-outgoing; Fri, 3 Jan 1997 12:00:41 -0800 (PST) Received: from mira.net.au (eplet.mira.net.au [203.9.190.17]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id MAA11080 for ; Fri, 3 Jan 1997 12:00:37 -0800 (PST) Received: (qmail 22373 invoked from network); 3 Jan 1997 20:00:35 -0000 Received: from melb.werple.net.au (203.9.190.18) by eplet.mira.net.au with SMTP; 3 Jan 1997 20:00:35 -0000 Received: (from uucp@localhost) by melb.werple.net.au (8.7.6/8.7.3/2) with UUCP id GAA04610; Sat, 4 Jan 1997 06:56:13 +1100 (EST) Received: (from jb@localhost) by freebsd1.cimlogic.com.au (8.7.5/8.7.3) id GAA28204; Sat, 4 Jan 1997 06:46:51 +1100 (EST) From: John Birrell Message-Id: <199701031946.GAA28204@freebsd1.cimlogic.com.au> Subject: Re: MOD_DECL in lkm.h To: bde@zeta.org.au (Bruce Evans) Date: Sat, 4 Jan 1997 06:46:50 +1100 (EST) Cc: current@FreeBSD.org In-Reply-To: <199701030734.SAA23958@godzilla.zeta.org.au> from Bruce Evans at "Jan 3, 97 06:34:31 pm" X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk Bruce Evans wrote: > Most modules have > no need for a stat function. That's a shame because it is a useful interface for looking at debug info. Ah well, looks like my module won't have a stat function either. > Bruce > BTW, with lkms, how is device config info (like in kernel config files) supposed to be passed in rather than hard coding the configuration? In my case, I've got a digital I/O board that can have dip switches set to a range of base addresses. And it can be configured not to do interrupts or IRQs 2 - 7. I'd like to be able to do: modload -c config_file -p postinstall XXX_mod.o where the config_file might contain something similar to that given to the kernel config. Then I'd like the number of units to come from the config_file rather than from the NXXX in the XXX.h header file. -- John Birrell CIMlogic Pty Ltd jb@cimlogic.com.au; jb@netbsd.org 119 Cecil Street Ph +61 3 9690 6900 South Melbourne Vic 3205 Fax +61 3 9690 6650 Australia Mob +61 18 353 137