From: Jonathan Cameron <jic23@cam.ac.uk>
To: LKML <linux-kernel@vger.kernel.org>, Greg KH <greg@kroah.com>,
David Brownell <david-b@pacbell.net>
Subject: Standard handling of boolean attributes in sysfs.
Date: Mon, 21 Mar 2011 20:02:40 +0000 [thread overview]
Message-ID: <4D87AEE0.8000807@cam.ac.uk> (raw)
Hi All,
Just wondering what the feeling would be about having
a utility function similar to sysfs_streq to provide a
consistent option for all those sysfs attributes out there
where
1, on, true -> 1
0, off, false -> 0
Or does such a beast already exist and I'm just being unobservant?
Jonathan
next reply other threads:[~2011-03-21 20:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-21 20:02 Jonathan Cameron [this message]
2011-03-21 20:14 ` Standard handling of boolean attributes in sysfs Greg KH
2011-03-22 10:59 ` Jonathan Cameron
2011-03-22 22:30 ` Greg KH
2011-03-23 10:53 ` Jonathan Cameron
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=4D87AEE0.8000807@cam.ac.uk \
--to=jic23@cam.ac.uk \
--cc=david-b@pacbell.net \
--cc=greg@kroah.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