From owner-freebsd-arch@FreeBSD.ORG Fri Feb 27 04:16:31 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0EBF16A4CE for ; Fri, 27 Feb 2004 04:16:31 -0800 (PST) Received: from mailout2.pacific.net.au (mailout2.pacific.net.au [61.8.0.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 229E843D1F for ; Fri, 27 Feb 2004 04:16:29 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87])i1RCGD5O001290; Fri, 27 Feb 2004 23:16:13 +1100 Received: from gamplex.bde.org (katana.zip.com.au [61.8.7.246]) i1RCG9ch022782; Fri, 27 Feb 2004 23:16:11 +1100 Date: Fri, 27 Feb 2004 23:16:09 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= In-Reply-To: Message-ID: <20040227230124.D2469@gamplex.bde.org> References: <20040226.112045.82374099.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE cc: arch@freebsd.org Subject: Re: per-device sysctls X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2004 12:16:32 -0000 On Thu, 26 Feb 2004, Dag-Erling [iso-8859-1] Sm=F8rgrav wrote: > "M. Warner Losh" writes: > > How is this different than the sysctl stuff that already exsists for > > this and is accessed by devinfo? > > 1) it is immensely easier to access > > 2) it gives drivers a well-defined place to put their per-device > sysctl variables - devinfo doesn't address that issue at all Only broken drivers use sysctl variables. ioctl(3) is a much better interface that sysctl(3) for accessing per-device info. sysctl(8) is a better interface than ioctl(8) for handling the few device control things that can be done in a generic way, but this is only because there are so few such things that ioctl(8) doesn't exist. Bruce