Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Oct 2002 12:02:12 -0700 (PDT)
From:      Julian Elischer <julian@elischer.org>
To:        "Vladimir B.  Grebenschikov" <vova@sw.ru>
Cc:        freebsd-current@freebsd.org
Subject:   Re: DDB sysctl function
Message-ID:  <Pine.BSF.4.21.0210081202050.41233-100000@InterJet.elischer.org>
In-Reply-To: <1034097697.1548.2.camel@vbook.express.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
VERY COOL!

On 8 Oct 2002, Vladimir B.  Grebenschikov wrote:

> Hi 
> 
> Attached diff introduces new ddb interface - access to sysctl interface 
> 
> sysctl  - read sysctl value 
> sysctlw - write sysctl value 
> 
> Example: 
> 
> Translate string to sysctl MIB: 
> 
> db> sysctlw 0.3 hw\.model 
> 0xcd1aaeec: 6 2 
> db> 
> 
> Now get string by this MIB: 
> 
> db> sysctl 6.2 s 
> 0xcd1ab24: Pentium II/Pentium II Xenon/Celeron 
> db> 
> 
> Or get vm.kvm_free 
> db> sysctlw 0.3 vm\.kvm_free 
> 0xcd1aaeec: 2	2da 
> db> sysctl 2.2da 
> 0xcd1ab2f4: 3800000 
> db> 
> 
> This interface useful to inspect/change data easy accessible through
> sysctl and hard accessible directly (say dynamic sysctl-mapped data, or
> sysctl-mapped fields in complex structures).
> 
> Comments appreciated. 
> 
> -- 
> Vladimir B. Grebenschikov
> vova@sw.ru, SWsoft, Inc.
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0210081202050.41233-100000>