Date: Wed, 31 Jan 2001 10:43:14 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: Andrzej Bialecki <abial@webgiro.com> Cc: peter@netplex.com.au, msmith@FreeBSD.org, mjacob@feral.com, sos@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, Soren Schmidt <sos@freebsd.dk> Subject: Re: cvs commit: src/sys/dev/ata ata-disk.c Message-ID: <XFMail.010131104314.jhb@FreeBSD.org> In-Reply-To: <Pine.BSF.4.20.0101311019240.52835-100000@mx.webgiro.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 31-Jan-01 Andrzej Bialecki wrote: > On Tue, 30 Jan 2001, John Baldwin wrote: > >> >> On 30-Jan-01 Soren Schmidt wrote: >> > It seems Peter Wemm wrote: >> >> >> >> I had a sysctl to turn it on/off globally for all drives. I never got >> >> around >> >> to making it per-drive. >> >> >> >> A stale, very old version is at: >> >> http://people.freebsd.org/~peter/wce.diff >> >> >> >> Replicating the hw.atamodes dma/pio thing is probably the ticket though. >> > >> > And that is exactly what I have in the works for other things, and as >> > I said I'll add WCE to it, but in the meantime I think an option >> > will do just fine... >> >> Actually, having dynaic per-device sysctls such as: >> >> hw.ata.ad0.wce=1 >> hw.ata.ad0.mode=dma >> hw.ata.acd1.mode=pio >> ... >> etc. >> >> would be nice. > > Maybe what you want is the sysctl_add_oid(9)? Yes, dynamic sysctls (SYSCTL_ADD_*) is exactly what I'm hinting at, I'm just making a design suggestion, I know it can be done. See the recent addition of dynamic sysctls to pcm and acpi for example. :) > Andrzej Bialecki -- John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010131104314.jhb>