1What: /config/usb-gadget/gadget/functions/mass_storage.name 2Date: Oct 2013 3KernelVersion: 3.13 4Description: 5 The attributes: 6 7 =========== ============================================== 8 stall Set to permit function to halt bulk endpoints. 9 Disabled on some USB devices known not to work 10 correctly. You should set it to true. 11 num_buffers Number of pipeline buffers. Valid numbers 12 are 2..4. Available only if 13 CONFIG_USB_GADGET_DEBUG_FILES is set. 14 =========== ============================================== 15 16What: /config/usb-gadget/gadget/functions/mass_storage.name/lun.name 17Date: Oct 2013 18KernelVersion: 3.13 19Description: 20 The attributes: 21 22 ============ ============================================== 23 file The path to the backing file for the LUN. 24 Required if LUN is not marked as removable. 25 ro Flag specifying access to the LUN shall be 26 read-only. This is implied if CD-ROM emulation 27 is enabled as well as when it was impossible 28 to open "filename" in R/W mode. 29 removable Flag specifying that LUN shall be indicated as 30 being removable. 31 cdrom Flag specifying that LUN shall be reported as 32 being a CD-ROM. 33 nofua Flag specifying that FUA flag 34 in SCSI WRITE(10,12) 35 forced_eject This write-only file is useful only when 36 the function is active. It causes the backing 37 file to be forcibly detached from the LUN, 38 regardless of whether the host has allowed it. 39 Any non-zero number of bytes written will 40 result in ejection. 41 ============ ============================================== 42