From owner-freebsd-arch@FreeBSD.ORG Tue Jun 14 11:33:03 2005 Return-Path: X-Original-To: arch@freebsd.org 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 5508216A41C for ; Tue, 14 Jun 2005 11:33:03 +0000 (GMT) (envelope-from howardsue@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C70E43D1D for ; Tue, 14 Jun 2005 11:33:02 +0000 (GMT) (envelope-from howardsue@gmail.com) Received: by wproxy.gmail.com with SMTP id 67so153345wri for ; Tue, 14 Jun 2005 04:33:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=d8EushZ1OH/zppXQntm42TG8LVECsyfbxrFY8r6TkCnPW8cf52G17SJIqR1YWXAL+Jw0PmWXRX+dgt+Dt1vmgFWiBcoF7w5Yzxe+ukOzJNOkLToNfvygh7+iVU1qvF6ZIpa8gs4/6seog25KdXmFfgGjXNLubSY04f6lOqHLalI= Received: by 10.54.57.2 with SMTP id f2mr2867242wra; Tue, 14 Jun 2005 04:33:01 -0700 (PDT) Received: by 10.54.124.4 with HTTP; Tue, 14 Jun 2005 04:33:01 -0700 (PDT) Message-ID: <1e89cd510506140433437f7b7@mail.gmail.com> Date: Tue, 14 Jun 2005 19:33:01 +0800 From: Sue Howard To: arch@freebsd.org, ken@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: Subject: [DCR] Remove devstat X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Sue Howard List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jun 2005 11:33:03 -0000 Hi, I found devstat is not widely used in the device drivers. Based the grep result of 'devstat_new_entry', it shows only cam, ata, fd, geom_disk are using it. In my workstation, the output of 'sysctl kern.devstat' shows: kern.devstat.version: 6 kern.devstat.generation: 229 kern.devstat.numdevs: 2 I am wondering if devstat can be replaced by the sysctl nodes %desc, %pnpinfo etc that jhb introduced. Almost all the information devstat can provide can be also exposed by such sysctl node. I have plan to introduce a new node named status so that userland can disable on individual device. Before that, I want to understand some related stuffs. Any comments about this? Howard Sue