From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 21 21:15:40 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 823601065676 for ; Mon, 21 Mar 2011 21:15:40 +0000 (UTC) (envelope-from andrey@zonov.org) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 208C48FC24 for ; Mon, 21 Mar 2011 21:15:39 +0000 (UTC) Received: by fxm11 with SMTP id 11so6978882fxm.13 for ; Mon, 21 Mar 2011 14:15:38 -0700 (PDT) Received: by 10.223.14.207 with SMTP id h15mr2616144faa.50.1300742114990; Mon, 21 Mar 2011 14:15:14 -0700 (PDT) Received: from [10.254.254.77] (ppp95-165-158-246.pppoe.spdop.ru [95.165.158.246]) by mx.google.com with ESMTPS id n9sm2012846fax.3.2011.03.21.14.15.12 (version=SSLv3 cipher=OTHER); Mon, 21 Mar 2011 14:15:13 -0700 (PDT) Message-ID: <4D87BFDA.90007@zonov.org> Date: Tue, 22 Mar 2011 00:15:06 +0300 From: Andrey Zonov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: Alexander Best References: <20110320175123.GA65715@freebsd.org> In-Reply-To: <20110320175123.GA65715@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org Subject: Re: issues with kern.devstat.all X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2011 21:15:40 -0000 Hi, This sysctl contains a binary data. You can see it using -o or -x sysctl's key. Additional information is at devstat(3) manpage. -- Andrey Zonov 20.03.2011 20:51, Alexander Best пишет: > hi there, > > could somebody explain the following behavior running a recent CURRENT on amd64? > > otaku% sysctl kern.devstat > kern.devstat.numdevs: 6 > kern.devstat.generation: 222 > kern.devstat.version: 6 > otaku% sysctl kern.devstat.all > otaku% echo $? > 0 > otaku% sysctl -d kern.devstat.all > kern.devstat.all: All devices in the devstat list > > cheers. > alex >