From: Pierre Ossman <drzeus-list@drzeus.cx>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Russell King <rmk+lkml@arm.linux.org.uk>
Subject: MMC ioctl or sysfs interface?
Date: Thu, 09 Jun 2005 15:08:41 +0200 [thread overview]
Message-ID: <42A83F59.7090509@drzeus.cx> (raw)
MMC cards have the feature to lock down cards using a special password.
When the cards is locked it will not accept any commands except
lock-related ones.
I've been thinking about implementing support for this in Linux but I'm
not sure which interface should be used for it. The functions needed are:
* Lock card with a supplied password.
* Unlock card using a password.
* Clear password.
* Erase lock (clears the card and removes the lock).
Since you want some feedback with the result of the operation an ioctl
seemed appropriate. But mmc cards don't have device nodes so there is
nothing to do ioctls on. So in that perspective a sysfs solution would
be better. But how to you do the interaction with userspace in a good way?
Ideas are very welcome.
Rgds
Pierre
next reply other threads:[~2005-06-09 13:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-09 13:08 Pierre Ossman [this message]
2005-06-10 0:58 ` MMC ioctl or sysfs interface? Chris Wedgwood
2005-06-10 21:00 ` Pierre Ossman
2005-06-10 23:00 ` Alan Cox
2005-06-12 18:15 ` Pierre Ossman
2005-06-12 18:25 ` Alan Cox
2005-06-12 20:30 ` Jon Smirl
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=42A83F59.7090509@drzeus.cx \
--to=drzeus-list@drzeus.cx \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk+lkml@arm.linux.org.uk \
/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