From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 21 04:37:20 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 A557D1065670 for ; Mon, 21 Mar 2011 04:37:20 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 66D238FC0C for ; Mon, 21 Mar 2011 04:37:20 +0000 (UTC) Received: by iwn33 with SMTP id 33so7140126iwn.13 for ; Sun, 20 Mar 2011 21:37:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:cc:subject:in-reply-to :message-id:references:user-agent:x-openpgp-key-id :x-openpgp-key-fingerprint:mime-version:content-type; bh=6aMtQ/MvqluodZDnHQirJ7DBaIjW6RNEx4dVrbLxHAo=; b=Fg7LRzq4rHwaqXE10OkWkAI6ve8hriddwe5Y/EFdjFYIxvE09cGXKvxoro6A4R1CQv baK0Hn92UYIR5Px5u6zvZwMmmEFv9HnNAwdWvDH40mK/dBAKPsbbEMhVxA9YiWeM0iRJ eM+7OBVhZawH67ONr46I/ZncDlYCLwk6asv+M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; b=K/cYR6qhBq3SwD9pNSa2S11D02UAsi8ILjapd/WzmZ94dBjwBQNzzuOekcvMxXB0kB GkDyygO1/Ogk6N1V5tsMx1WB5CMZuf8J36inOq4AdUNupBJvmh/dL22MB0tO5L8XnV0C +FKtxIr2fF9O00e4yjdMqmBvYs5DT2Ijrla5c= Received: by 10.42.149.6 with SMTP id t6mr465035icv.366.1300682239722; Sun, 20 Mar 2011 21:37:19 -0700 (PDT) Received: from disbatch.dataix.local (adsl-99-181-148-152.dsl.klmzmi.sbcglobal.net [99.181.148.152]) by mx.google.com with ESMTPS id s1sm701707iba.58.2011.03.20.21.37.16 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 20 Mar 2011 21:37:18 -0700 (PDT) Sender: "J. Hellenthal" Date: Mon, 21 Mar 2011 00:37:09 -0400 From: "J. Hellenthal" To: Alexander Best In-Reply-To: <20110320175123.GA65715@freebsd.org> Message-ID: References: <20110320175123.GA65715@freebsd.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 04:37:20 -0000 On Sun, 20 Mar 2011 13:51, arundel@ wrote: > 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 > This is an opaque sysctl. You can use the (-o) flag to see the format and the first sixteen bytes or use (-x) to see the full output. There are plenty of these in the sysctl tree, they are just not normally conveyed directly to the user without the proper flags given as the output is not very useful to the human eye and contains to much output in any other format to be useful. What this one specifically relates to IDK, maybe someone else can tune in for further information. See ( sysctl -A ) for further interesting details. -- Regards, J. Hellenthal (0x89D8547E) JJH48-ARIN