Lines Matching +full:cs +full:- +full:number
19 a number of interfaces which, from the gadget's perspective, are known as
22 Linux provides a number of functions for gadgets to use.
50 http://www.spinics.net/lists/linux-usb/msg76388.html)
55 $ mount none $CONFIGFS_HOME -t configfs
60 -----------------------
81 A gadget also needs its serial number, manufacturer and product strings.
89 $ echo <serial number> > strings/0x409/serialnumber
104 ------------------------------
106 Each gadget will consist of a number of configurations, their corresponding
109 $ mkdir configs/<name>.<number>
112 <number> is the configuration's number, e.g.::
134 -------------------------
150 Each function provides its specific set of attributes, with either read-only
151 or read-write access. Where applicable they need to be written to as
153 Please refer to Documentation/ABI/testing/configfs-usb-gadget for more information.
156 ------------------------------------------------------
158 At this moment a number of gadgets is created, each of which has a number of
159 configurations specified and a number of functions available. What remains
164 $ ln -s functions/<name>.<instance name> configs/<name>.<number>
168 $ ln -s functions/ncm.usb0 configs/c.1
175 ----------------------
190 ./configs/c.1/ncm.usb0 -> ../../../../usb_gadget/g1/functions/ncm.usb0
223 $ echo s3c-hsotg > UDC
227 -----------------------
234 --------------
238 $ rm configs/<config name>.<number>/<function>
240 where <config name>.<number> specify the configuration and <function> is
251 $ rmdir configs/<config name>.<number>/strings/<lang>
263 $ rmdir configs/<config name>.<number>
314 which can be read-only or read-write, depending on what they represent.
318 configured elements. However, they are embedded in usage-specific
319 larger structures. In the picture below there is a "cs" which contains
325 ./cs (directory)
327 +--sa (file)
335 In the said function the "cs" and "sa" are retrieved using the well
337 store) is called and passed the "cs" and a character buffer. The "show"
338 is for displaying the file's contents (copy data from the cs to the
340 from the buffer to the cs), but it is up to the implementer of the
345 typedef struct configured_structure cs;
349 +----------------------------------+
350 cs | (*show)(cs *, buffer); |
351 +-----------------+ | (*store)(cs *, buffer, length); |
353 | +-------------+ | | +------------------+ |
354 | | struct |-|----|------>|struct | |
356 | +-------------+ | | +------------------+ |
357 | | +----------------------------------+
360 +-----------------+ .
364 a number of its default sub-groups created automatically.
372 idProduct etc) and default sub-groups (configs, functions, strings).
374 appropriate locations. In the configs, functions and strings sub-groups
375 a user can create their sub-groups to represent configurations, functions,
387 - gadget's config_group
388 - gadget's default groups (configs, functions, strings)
389 - associating functions with configurations (symlinks)