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
94 ------------------------------
96 Each gadget will consist of a number of configurations, their corresponding
99 $ mkdir configs/<name>.<number>
102 <number> is the configuration's number, e.g.::
124 -------------------------
140 Each function provides its specific set of attributes, with either read-only
141 or read-write access. Where applicable they need to be written to as
143 Please refer to Documentation/ABI/testing/configfs-usb-gadget for more information.
146 ------------------------------------------------------
148 At this moment a number of gadgets is created, each of which has a number of
149 configurations specified and a number of functions available. What remains
154 $ ln -s functions/<name>.<instance name> configs/<name>.<number>
158 $ ln -s functions/ncm.usb0 configs/c.1
165 ----------------------
180 ./configs/c.1/ncm.usb0 -> ../../../../usb_gadget/g1/functions/ncm.usb0
213 $ echo s3c-hsotg > UDC
217 -----------------------
224 --------------
228 $ rm configs/<config name>.<number>/<function>
230 where <config name>.<number> specify the configuration and <function> is
241 $ rmdir configs/<config name>.<number>/strings/<lang>
253 $ rmdir configs/<config name>.<number>
304 which can be read-only or read-write, depending on what they represent.
308 configured elements. However, they are embedded in usage-specific
309 larger structures. In the picture below there is a "cs" which contains
315 ./cs (directory)
317 +--sa (file)
325 In the said function the "cs" and "sa" are retrieved using the well
327 store) is called and passed the "cs" and a character buffer. The "show"
328 is for displaying the file's contents (copy data from the cs to the
330 from the buffer to the cs), but it is up to the implementer of the
335 typedef struct configured_structure cs;
339 +----------------------------------+
340 cs | (*show)(cs *, buffer); |
341 +-----------------+ | (*store)(cs *, buffer, length); |
343 | +-------------+ | | +------------------+ |
344 | | struct |-|----|------>|struct | |
346 | +-------------+ | | +------------------+ |
347 | | +----------------------------------+
350 +-----------------+ .
354 a number of its default sub-groups created automatically.
362 idProduct etc) and default sub-groups (configs, functions, strings).
364 appropriate locations. In the configs, functions and strings sub-groups
365 a user can create their sub-groups to represent configurations, functions,
377 - gadget's config_group
378 - gadget's default groups (configs, functions, strings)
379 - associating functions with configurations (symlinks)