From owner-cvs-sys Tue May 19 01:27:14 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA19067 for cvs-sys-outgoing; Tue, 19 May 1998 01:27:14 -0700 (PDT) (envelope-from owner-cvs-sys) Received: from rah.star-gate.com (rah.star-gate.com [209.133.7.234]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA19060; Tue, 19 May 1998 01:27:06 -0700 (PDT) (envelope-from hasty@rah.star-gate.com) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.8.8/8.8.8) with ESMTP id BAA01249; Tue, 19 May 1998 01:25:08 -0700 (PDT) (envelope-from hasty@rah.star-gate.com) Message-Id: <199805190825.BAA01249@rah.star-gate.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Bruce Evans cc: luigi@labinfo.iet.unipi.it, ahasty@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-sys@FreeBSD.ORG, roger@cs.strath.ac.uk Subject: Re: cvs commit: src/sys/pci brooktree848.c In-reply-to: Your message of "Tue, 19 May 1998 18:11:45 +1000." <199805190811.SAA06734@godzilla.zeta.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 19 May 1998 01:25:08 -0700 From: Amancio Hasty Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk It sure will be nice to have a uniform way to configure the kernel and its modules ala sysctl rather than having to remember N "hairy device specific" programs. Amancio > >> A sysctl is even worse than a config option for device control. ioctl(2) > >> should be used for device control. > > > >You are right. But some programs just work because they rely on > >the defaults used by the kernel, and fail to set up things properly > >(or -- it is the same -- they assume a default behaviour that suit > >their needs). > > > >The PAL<->NTSC has been historically (at least in my experience) > >a big sort of confusion and incompatibilities, and people on either > >side of the Atlantic (including me) tend to forget this. I found myself > >many times to have to patch video grabbing programs to do this (e.g. > >see vic). And many times i hardwired a PAL mode in my code causing > >troubles to people in the US. At least this sysctl helps fixing > >things without having to change sources or recompile. > > So would an ioctl. You just make the setting sticky and change it only > at boot time. For the administrator, the only differences are: > 1) the command used to change the setting (`sysctl -w hw.fooN.bar=magic' > vs `fooctl -f /dev/fooN bar magic'). > 2) sysctl variables are a bit easier to find using `sysctl -a | grep ':' > This is being fixed by letting sysctl variables grow like weeds :-). > There will soon be enough of them for this to give more to search in > than `apropos ""'. > > Bruce