MMC ioctl or sysfs interface?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux