Question : existence check for eMMC device

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

 



Hi, guys,

I need to support multiple systems with and without eMMC flash, using single software.
I used to check "/sys/block/mmcblk0/device/cid" file to decide whether eMMC flash exists or not on the system.

But it seems that the sysfs file might be brought up slowly (though it's very unusual, ~0.2%), so in that case, our rc script fails to detect the existence of eMMC.

Is there any reliable way to check the existence of eMMC device? 
(wanna avoid busy polling or retry against the sysfs cid file until eMMC flash is detected...)

Thanks in advance, for any answer or comment.

Jongman Heo.��.n��������+%������w��{.n�����{��i��)��jg��������ݢj����G�������j:+v���w�m������w�������h�����٥





[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux