Date: Wed, 31 Jan 2001 01:44:14 +1100 (EST) From: Bruce Evans <bde@zeta.org.au> To: Valentin Nechayev <netch@lucky.net> Cc: arch@freebsd.org Subject: Re: dynamic vs static sysctls? Message-ID: <Pine.BSF.4.21.0101310113590.1824-100000@besplex.bde.org> In-Reply-To: <20010130144848.A76120@lucky.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0101310113590.1824-100000>