From owner-cvs-all Fri Oct 2 09:48:34 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA27684 for cvs-all-outgoing; Fri, 2 Oct 1998 09:48:34 -0700 (PDT) (envelope-from owner-cvs-all) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA27656; Fri, 2 Oct 1998 09:48:24 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id JAA00381; Fri, 2 Oct 1998 09:51:30 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199810021651.JAA00381@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Peter Wemm cc: Andreas Klemm , "Kenneth D. Merry" , ken@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/cam/scsi scsi_sa.c src/sys/conf options src/sys/i386/conf LINT In-reply-to: Your message of "Sat, 03 Oct 1998 00:32:31 +0800." <199810021632.AAA23867@spinner.netplex.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 02 Oct 1998 09:51:30 -0700 From: Mike Smith Sender: owner-cvs-all@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > Hmm.. Perhaps 'sysctl -W foo.bar=10' might be a way to request > persistance. Implementing it would be hell though, but for INT variables > at least it should just be a matter of grubbing around inside /dev/kmem > (or some option to sysctl itself to tell us the kva of the backing > variable) and then stow that away in the booted kernel image (if > permitted). And it would only work for varaiables in the data segment > rather than bss or initialized-to-zero. > > Argh.. On second thoughts maybe I'll just shutup. Add some more code to the sysctl initialiser to go looking for a kernel environment variable that matches the name of the sysctl variable and initialises it from there. Then put 'set kern.some.variable=value' in /boot/boot.conf (or wherever). Not much code to add, really. Not that it gets the 'persistence' idea right either, of course. 8( -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com