From owner-freebsd-arch Tue Jan 30 6:47:39 2001 Delivered-To: freebsd-arch@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 8DB0537B491 for ; Tue, 30 Jan 2001 06:47:20 -0800 (PST) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id BAA20721; Wed, 31 Jan 2001 01:44:29 +1100 Date: Wed, 31 Jan 2001 01:44:14 +1100 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Valentin Nechayev Cc: arch@freebsd.org Subject: Re: dynamic vs static sysctls? In-Reply-To: <20010130144848.A76120@lucky.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 30 Jan 2001, Valentin Nechayev wrote: > Hello Bruce Evans! > > Tue, Jan 30, 2001 at 22:11:24, bde wrote about "Re: cvs commit: src/sys/dev/ata ata-disk.c": > > > If I had 512 channels (the maximum number of ad disks supported), it > > might be: > > > > hw.atamodes: dma,pio,dma,dma,dma,dma,dma,dma,dma,pio,dma,dma,dma,... > > > > Quick now, change the mode for ad345 (hint: it's probably not just the 345th > > element in the string). > > > > Supporting this poor user interface isn't even easy for the driver -- it takes > > about 40 lines of code to translate the string. > > You think it should be hw.isa0.ata172.slave.atamode, don't you? > (Followup please to -arch with subject "Re: dynamic vs static sysctls?", > please;))) I think it should be an ioctl :-). If it must be a sysctl, then it should be something more like dev.ata.ad345.iomode (select by device name) and dev.ata.ata234-slave.iomode (select by interface number) to provide a reasonable user interface, and something with the device numbers last to avoid bloating the sysctl tree. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message