| /Documentation/driver-api/driver-model/ |
| D | design-patterns.rst | 24 struct foo { 31 struct foo *foo; 33 foo = devm_kzalloc(dev, sizeof(*foo), GFP_KERNEL); 34 if (!foo) 36 spin_lock_init(&foo->lock); 40 This will create an instance of struct foo in memory every time probe() is 46 pass around a pointer to struct foo like this:: 50 struct foo *foo = arg; 56 struct foo *foo; 59 ret = request_irq(irq, foo_handler, 0, "foo", foo); [all …]
|
| /Documentation/translations/zh_CN/admin-guide/ |
| D | bootconfig.rst | 46 foo.bar.baz = value1 47 foo.bar.qux.quux = value2 51 foo.bar { 58 foo.bar { baz = value1; qux.quux = value2 } 68 foo = bar, baz 69 foo = qux # !错误! 我们不可以重定义相同的关键字 73 foo = bar, baz 74 foo := qux 76 这样 ``foo`` 关键字的值就变成了 ``qux`` 。这对于通过添加(部分)自定义引导 81 foo = bar, baz [all …]
|
| /Documentation/translations/zh_TW/admin-guide/ |
| D | bootconfig.rst | 46 foo.bar.baz = value1 47 foo.bar.qux.quux = value2 51 foo.bar { 58 foo.bar { baz = value1; qux.quux = value2 } 68 foo = bar, baz 69 foo = qux # !錯誤! 我們不可以重定義相同的關鍵字 73 foo = bar, baz 74 foo := qux 76 這樣 ``foo`` 關鍵字的值就變成了 ``qux`` 。這對於通過添加(部分)自定義引導 81 foo = bar, baz [all …]
|
| /Documentation/admin-guide/ |
| D | bootconfig.rst | 48 foo.bar.baz = value1 49 foo.bar.qux.quux = value2 53 foo.bar { 60 foo.bar { baz = value1; qux.quux = value2 } 71 foo = bar, baz 72 foo = qux # !ERROR! we can not re-define same key 77 foo = bar, baz 78 foo := qux 80 then, the ``qux`` is assigned to ``foo`` key. This is useful for 87 foo = bar, baz [all …]
|
| D | dynamic-debug-howto.rst | 69 :#> ddcmd mode foo +p 257 If ``foo`` module is not built-in, ``foo.dyndbg`` will still be processed at 265 When ``modprobe foo`` is called, modprobe scans ``/proc/cmdline`` for 266 ``foo.params``, strips ``foo.``, and passes them to the kernel along with 272 options foo dyndbg=+pt 273 options foo dyndbg # defaults to +p 275 2. ``foo.dyndbg`` as given in boot args, ``foo.`` is stripped and passed:: 277 foo.dyndbg=" func bar +p; func buz +mp" 281 modprobe foo dyndbg==pmf # override previous settings 288 In the ``foo.dyndbg="QUERY"`` form, the query must exclude ``module foo``. [all …]
|
| /Documentation/translations/zh_CN/core-api/ |
| D | xarray.rst | 205 void foo_init(struct foo *foo) 207 xa_init_flags(&foo->array, XA_FLAGS_LOCK_BH); 210 int foo_store(struct foo *foo, unsigned long index, void *entry) 214 xa_lock_bh(&foo->array); 215 err = xa_err(__xa_store(&foo->array, index, entry, GFP_KERNEL)); 217 foo->count++; 218 xa_unlock_bh(&foo->array); 223 void foo_erase(struct foo *foo, unsigned long index) 225 xa_lock(&foo->array); 226 __xa_erase(&foo->array, index); [all …]
|
| /Documentation/admin-guide/gpio/ |
| D | gpio-virtuser.rst | 115 foo-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>, <&gpio1 2 0>; 124 following device property: ``foo-gpios = <&gpio0 0 0>, <&gpio0 4 0>;``. 128 **Group:** ``/sys/kernel/debug/gpio-virtuser/$dev_name/gpiod:foo/`` 132 **Attribute:** ``/sys/kernel/debug/gpio-virtuser/$dev_name/gpiod:foo/values`` 134 **Attribute:** ``/sys/kernel/debug/gpio-virtuser/$dev_name/gpiod:foo/values_atomic`` 144 **Group:** ``/sys/kernel/debug/gpio-virtuser/$dev_name/gpiod:foo:$index/`` 149 **Attribute:** ``/sys/kernel/debug/gpio-virtuser/$dev_name/gpiod:foo:$index/consumer`` 153 **Attribute:** ``/sys/kernel/debug/gpio-virtuser/$dev_name/gpiod:foo:$index/debounce`` 157 **Attribute:** ``/sys/kernel/debug/gpio-virtuser/$dev_name/gpiod:foo:$index/direction`` 159 **Attribute:** ``/sys/kernel/debug/gpio-virtuser/$dev_name/gpiod:foo:$index/direction_atomic`` [all …]
|
| /Documentation/kbuild/ |
| D | kconfig-macro-language.rst | 16 APP := foo 17 SRC := foo.c 26 foo: foo.c 27 gcc -o foo foo.c 38 def_bool $(shell, $(srctree)/scripts/gcc-check-foo.sh $(CC)) 207 config FOO 208 int "foo" 215 config FOO 216 int "foo" 224 config FOO [all …]
|
| D | kconfig-language.rst | 128 bool "foo" if BAR 134 bool "foo" 150 By abusing select you are able to select a symbol FOO even 151 if FOO depends on BAR that is not set. 171 config FOO 172 tristate "foo" 182 FOO BAR BAZ's default choice for BAZ 197 Note: If the combination of FOO=y and BAZ=m causes a link error, 203 baz_register(&foo); 207 Note: If the feature provided by BAZ is highly desirable for FOO, [all …]
|
| /Documentation/devicetree/bindings/clock/ |
| D | maxim,max77686.txt | 61 foo@0 { 62 compatible = "bar,foo"; 86 foo@0 { 87 compatible = "bar,foo"; 109 foo@0 { 110 compatible = "bar,foo";
|
| D | maxim,max9485.txt | 54 foo@0 { 55 compatible = "bar,foo"; 57 clock-names = "foo-input-clk";
|
| /Documentation/driver-api/ |
| D | pin-control.rst | 75 .name = "foo", 361 group "foo": 365 pinctrl_get_group_pins(pctl, "foo", &gpio_range.pins, &gpio_range.npins); 904 PIN_MAP_MUX_GROUP("uart", PINCTRL_STATE_DEFAULT, "pinctrl-foo", 906 PIN_MAP_CONFIGS_PIN("uart", PINCTRL_STATE_DEFAULT, "pinctrl-foo", 908 PIN_MAP_MUX_GROUP("uart", PINCTRL_STATE_SLEEP, "pinctrl-foo", 910 PIN_MAP_CONFIGS_PIN("uart", PINCTRL_STATE_SLEEP, "pinctrl-foo", 963 .dev_name = "foo-spi.0", 966 .ctrl_dev_name = "pinctrl-foo", 970 .dev_name = "foo-i2c.0", [all …]
|
| /Documentation/devicetree/ |
| D | overlay-notes.rst | 21 Lets take an example where we have a foo board with the following base tree:: 23 ---- foo.dts --------------------------------------------------------------- 24 /* FOO platform */ 27 compatible = "corp,foo"; 39 ---- foo.dts --------------------------------------------------------------- 56 when loaded (and resolved as described in [1]) should result in foo+bar.dts:: 58 ---- foo+bar.dts ----------------------------------------------------------- 59 /* FOO platform + bar peripheral */ 61 compatible = "corp,foo"; 79 ---- foo+bar.dts -----------------------------------------------------------
|
| /Documentation/translations/zh_CN/maintainer/ |
| D | modifying-patches.rst | 25 [lucky@maintainer.example.org: struct foo moved from foo.c to foo.h]
|
| /Documentation/translations/zh_CN/devicetree/ |
| D | overlay-notes.rst | 28 ---- foo.dts --------------------------------------------------------------- 32 compatible = "corp,foo"; 44 ---- foo.dts --------------------------------------------------------------- 63 ---- foo+bar.dts ----------------------------------------------------------- 66 compatible = "corp,foo"; 84 ---- foo+bar.dts -----------------------------------------------------------
|
| /Documentation/devicetree/bindings/power/ |
| D | power_domain.txt | 33 compatible = "foo,i-leak-current"; 40 compatible = "foo,i-leak-current"; 92 compatible = "foo,power-controller"; 99 compatible = "foo,i-leak-current"; 106 compatible = "foo,i-leak-current";
|
| /Documentation/RCU/ |
| D | rcu_dereference.rst | 227 struct foo { 232 struct foo *gp1; 233 struct foo *gp2; 237 struct foo *p; 253 struct foo *p; 254 struct foo *q; 283 struct foo { 289 struct foo *gp1; 290 struct foo *gp2; 294 struct foo *p; [all …]
|
| /Documentation/translations/zh_CN/doc-guide/ |
| D | parse-headers.rst | 153 enum foo { BAR1, BAR2, PRIVATE }; 157 replace symbol BAR1 :c:type:\`foo\` 158 replace symbol BAR2 :c:type:\`foo\` 163 enum foo { BAR1, BAR2, PRIVATE };
|
| /Documentation/driver-api/media/ |
| D | v4l2-controls.rst | 87 v4l2_ctrl_handler_init(&foo->ctrl_handler, nr_of_controls); 99 foo->v4l2_dev.ctrl_handler = &foo->ctrl_handler; 105 foo->sd.ctrl_handler = &foo->ctrl_handler; 111 v4l2_ctrl_handler_free(&foo->ctrl_handler); 176 v4l2_ctrl_handler_init(&foo->ctrl_handler, nr_of_controls); 177 v4l2_ctrl_new_std(&foo->ctrl_handler, &foo_ctrl_ops, 179 v4l2_ctrl_new_std(&foo->ctrl_handler, &foo_ctrl_ops, 181 v4l2_ctrl_new_std_menu(&foo->ctrl_handler, &foo_ctrl_ops, 185 v4l2_ctrl_new_int_menu(&foo->ctrl_handler, &foo_ctrl_ops, 190 v4l2_ctrl_new_std_menu_items(&foo->ctrl_handler, &foo_ctrl_ops, [all …]
|
| /Documentation/driver-api/gpio/ |
| D | board.rst | 24 compatible = "acme,foo"; 66 Device (FOO) { 84 ^FOO, 0, 0, 1, 85 ^FOO, 1, 0, 1, 86 ^FOO, 2, 0, 1, 89 Package () { "power-gpios", Package () { ^FOO, 3, 0, 0 } }, 144 .dev_id = "foo.0", 158 The driver controlling "foo.0" will then be able to obtain its GPIOs as follows:: 182 GPIO_HOG("gpio.0", 10, "foo", GPIO_ACTIVE_LOW, GPIOD_OUT_HIGH),
|
| /Documentation/process/ |
| D | maintainer-tip.rst | 287 abcdef012345678 ("x86/xxx: Replace foo with bar") 289 left an unused instance of variable foo around. Remove it. 295 The recent replacement of foo with bar left an unused instance of 296 variable foo around. Remove it. 298 Fixes: abcdef012345678 ("x86/xxx: Replace foo with bar") 340 [ handler: Replaced foo by bar and updated changelog ] 606 /* Caller must hold foo->lock */ 607 void func(struct foo *foo) 614 void func(struct foo *foo) 616 lockdep_assert_held(&foo->lock); [all …]
|
| /Documentation/bpf/ |
| D | llvm_reloc.rst | 421 struct foo { 434 [2] STRUCT 'foo' size=8 vlen=2 450 void alpha(struct foo *s, volatile unsigned long *g) { 457 00: CO-RE <byte_off> [2] struct foo::a (0:0) 460 10: CO-RE <byte_off> [2] struct foo::a (0:0) 469 void bravo(struct foo *s, volatile unsigned long *g) { 480 20: CO-RE <byte_off> [2] struct foo::b (0:1) 483 30: CO-RE <byte_sz> [2] struct foo::b (0:1) 486 40: CO-RE <field_exists> [2] struct foo::b (0:1) 489 50: CO-RE <signed> [2] struct foo::b (0:1) [all …]
|
| /Documentation/doc-guide/ |
| D | parse-headers.rst | 160 enum foo { BAR1, BAR2, PRIVATE }; 164 replace symbol BAR1 :c:type:\`foo\` 165 replace symbol BAR2 :c:type:\`foo\` 170 enum foo { BAR1, BAR2, PRIVATE }; 172 It will make the BAR1 and BAR2 enum symbols to cross reference the foo
|
| /Documentation/devicetree/bindings/arm/ |
| D | secure.txt | 16 instance "secure-foo" would override "foo". For property names with 17 a vendor prefix, the Secure variant of "vendor,foo" would be 18 "vendor,secure-foo". If there is no "secure-" property then the Secure
|
| /Documentation/maintainer/ |
| D | modifying-patches.rst | 20 [lucky@maintainer.example.org: struct foo moved from foo.c to foo.h]
|