MMC card locking

Submitted by tarigo
on May 15, 2009 - 8:54am

Hello all!
Does anybody know how to detect that MMC card is locked (by write-protection switch)? For example by ioctl or via sysfs?

P.S. I know that I could guess by write operations failure. :)