Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 May 2001 20:30:03 -0700 (PDT)
From:      Dima Dorfman <dima@unixfreak.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/26787: sysctl change request 
Message-ID:  <200105240330.f4O3U3b93675@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/26787; it has been noted by GNATS.

From: Dima Dorfman <dima@unixfreak.org>
To: phk@FreeBSD.org
Cc: ancient@bofh.cet.net, freebsd-gnats-submit@freebsd.org
Subject: Re: kern/26787: sysctl change request 
Date: Wed, 23 May 2001 20:27:19 -0700

 <phk@FreeBSD.org> writes:
 > Synopsis: sysctl change request
 > 
 > State-Changed-From-To: open->analyzed
 > State-Changed-By: phk
 > State-Changed-When: Wed May 23 13:14:17 PDT 2001
 > State-Changed-Why: 
 > This is a sensible wish, but unfortunately there are sysctl variables
 > which take opaque data types so doing this in a general way may be tricky.
 
 I think the best way would be to have the individual handlers print
 this message.  The sysctl framework could provide a sysctl_log routine
 which would call the appropriate *printf if kern.log_sysctls (example
 name) is set.  The standard handlers for int, string, and friends
 could be changed to do this, which would cover a lot of cases.  It may
 also be feasible to add a CTLFLAG_LOGWRITE which would just cause a
 "sysctl kern.blah was written to" message.
 
 Thoughts?  I'd be willing to implement this stuff.
 
 					Dima Dorfman
 					dima@unixfreak.org
 
 
 > 
 > Either way: we need somebody to write a patch for it, you may want
 > to put it up on http://phantom.cris.net/freebsd/projects/
 > 
 > 
 > http://www.FreeBSD.org/cgi/query-pr.cgi?pr=26787
 > 
 > To Unsubscribe: send mail to majordomo@FreeBSD.org
 > with "unsubscribe freebsd-bugs" in the body of the message
 > 

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105240330.f4O3U3b93675>