usb: gadget: f_mass_storage: detect eject

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

 



Hi,

I am trying to get some kind of notification when the host ejects a
f_mass_storage disk.

When it happens, and the lun is removable, then the config
/sys/kernel/config/usb_gadget/*/functions/*/lun.*/file is cleared.

I understand that sysfs files can not be monitored with inotify, but
some might be with select/poll/epoll. But this is a configfs.

I know nothing works for me. I don't know if this is a bug or expected.

Any insight?

Thanks!
Nuno



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux