Back to home page

OSCL-LXR

 
 

    


0001 What:           /config/usb-gadget/gadget/functions/mass_storage.name
0002 Date:           Oct 2013
0003 KernelVersion:  3.13
0004 Description:
0005                 The attributes:
0006 
0007                 ===========     ==============================================
0008                 stall           Set to permit function to halt bulk endpoints.
0009                                 Disabled on some USB devices known not to work
0010                                 correctly. You should set it to true.
0011                 num_buffers     Number of pipeline buffers. Valid numbers
0012                                 are 2..4. Available only if
0013                                 CONFIG_USB_GADGET_DEBUG_FILES is set.
0014                 ===========     ==============================================
0015 
0016 What:           /config/usb-gadget/gadget/functions/mass_storage.name/lun.name
0017 Date:           Oct 2013
0018 KernelVersion:  3.13
0019 Description:
0020                 The attributes:
0021 
0022                 ============    ==============================================
0023                 file            The path to the backing file for the LUN.
0024                                 Required if LUN is not marked as removable.
0025                 ro              Flag specifying access to the LUN shall be
0026                                 read-only. This is implied if CD-ROM emulation
0027                                 is enabled as well as when it was impossible
0028                                 to open "filename" in R/W mode.
0029                 removable       Flag specifying that LUN shall be indicated as
0030                                 being removable.
0031                 cdrom           Flag specifying that LUN shall be reported as
0032                                 being a CD-ROM.
0033                 nofua           Flag specifying that FUA flag
0034                                 in SCSI WRITE(10,12)
0035                 forced_eject    This write-only file is useful only when
0036                                 the function is active. It causes the backing
0037                                 file to be forcibly detached from the LUN,
0038                                 regardless of whether the host has allowed it.
0039                                 Any non-zero number of bytes written will
0040                                 result in ejection.
0041                 ============    ==============================================