From owner-freebsd-hackers Wed Oct 23 02:08:50 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA07521 for hackers-outgoing; Wed, 23 Oct 1996 02:08:50 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id CAA07515 for ; Wed, 23 Oct 1996 02:08:46 -0700 (PDT) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id SAA26604; Wed, 23 Oct 1996 18:38:26 +0930 From: Michael Smith Message-Id: <199610230908.SAA26604@genesis.atrad.adelaide.edu.au> Subject: Re: Linux emulation, gethostid() To: joerg_wunsch@uriah.heep.sax.de Date: Wed, 23 Oct 1996 18:38:26 +0930 (CST) Cc: freebsd-hackers@freebsd.org, msmith@atrad.adelaide.edu.au In-Reply-To: <199610230833.KAA25025@uriah.heep.sax.de> from "J Wunsch" at Oct 23, 96 10:33:54 am 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 J Wunsch stands accused of saying: > > > Do we want an ioctl to get the hardware address? If not, any > > suggestions on a _tidy_ way to get it? > > Grab the number you like by any means you like somewhere in rc.local, > and issue a sethostid(3) with it. No need to bloat the kernel for > this. Gotcha; I hadn't seen kern.hostid before. Anyone recommend a quick example I can look at for retrieving a sysctl value from inside an LKM? > cheers, J"org -- ]] Mike Smith, Software Engineer msmith@gsoft.com.au.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 [[