acrn-kernel/Documentation/usb
Maxim Devaev 421c8d9a20 usb: gadget: f_mass_storage: forced_eject attribute
It allows to reset prevent_medium_removal flag and "eject" the image.
This can be useful to free the drive from a hunging host or if the host
continues to use the drive even after unmounting (Linux does this).
It's also a bit like using an unfolded paperclip on an optical drive.

Previously, the undocumented method of sending SIGUSR1 to a special
"file-storage" kernel thread could be used for these purposes,
but when using multiple storages there was no way to distinguish
one from the other, so we had to send a signal to everyone.

Reviewed-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Maxim Devaev <mdevaev@gmail.com>
Link: https://lore.kernel.org/r/20220711102956.19642-1-mdevaev@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-07-14 16:06:42 +02:00
..
CREDITS
acm.rst
authorization.rst
chipidea.rst
dwc3.rst
ehci.rst
functionfs.rst
gadget-testing.rst usb: gadget: f_mass_storage: forced_eject attribute 2022-07-14 16:06:42 +02:00
gadget_configfs.rst
gadget_hid.rst
gadget_multi.rst
gadget_printer.rst
gadget_serial.rst
index.rst
iuu_phoenix.rst
linux-cdc-acm.inf
linux.inf
mass-storage.rst usb: gadget: f_mass_storage: forced_eject attribute 2022-07-14 16:06:42 +02:00
misc_usbsevseg.rst
mtouchusb.rst
ohci.rst
raw-gadget.rst
text_files.rst
usb-help.rst
usb-serial.rst
usbdevfs-drop-permissions.c
usbip_protocol.rst
usbmon.rst docs: usb: fix literal block marker in usbmon verification example 2022-06-09 09:50:03 -06:00