From: Tim Hockin <thockin@sun.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: sysctl() strategy questions
Date: Wed, 05 Sep 2001 11:56:00 -0700 [thread overview]
Message-ID: <3B967540.2703E765@sun.com> (raw)
All,
I've noticed an anomaly, and am not sure which behavior is correct:
sysctl_string() stores the value it reads to table->data
sysctl_intvec() validates but does not store the value it reads
whereas
proc_intvec() does store the intvec it reads, but does not validate
proc_dostring() stores the string it read
Should sysctl_intvec() be storing the data, or should sysctl_string() NOT?
Or is this oddness by design?
Also, what is the typical answer to a sysctl variable that is essentially
an enum? Ideally the /proc interface can show it as a meaningful string,
but should the sysctl() interface pass the integer values (cleaner)?
Should I toss an enum into sysctl.h ?
Tim
--
Tim Hockin
Systems Software Engineer
Sun Microsystems, Cobalt Server Appliances
thockin@sun.com
reply other threads:[~2001-09-05 18:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3B967540.2703E765@sun.com \
--to=thockin@sun.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox