| /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/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 | 124 bool "foo" if BAR 130 bool "foo" 146 By abusing select you are able to select a symbol FOO even 147 if FOO depends on BAR that is not set. 161 config FOO 172 FOO BAR BAZ's default choice for BAZ 488 depends on HAVE_GENERIC_IOMAP && FOO 533 config FOO 536 limits FOO to module (=m) or disabled (=n). 580 a) Remove any superfluous "select FOO" or "depends on FOO" [all …]
|
| D | modules.rst | 147 Example (The module foo.ko, consist of bar.o and baz.o):: 151 make -C $KDIR M=$PWD foo.ko 307 file. For example, if you wanted to build two modules, foo.ko 310 obj-m := foo.o bar.o 311 foo-y := <foo_srcs> 513 If you have two modules, foo.ko and bar.ko, where 514 foo.ko needs symbols from bar.ko, you can use a 519 ./foo/ <= contains foo.ko 525 obj-m := foo/ bar/ 539 compilation of bar.ko to the directory where foo.ko is
|
| /Documentation/devicetree/ |
| D | overlay-notes.txt | 18 Lets take an example where we have a foo board with the following base tree: 20 ---- foo.dts ----------------------------------------------------------------- 21 /* FOO platform */ 23 compatible = "corp,foo"; 35 ---- foo.dts ----------------------------------------------------------------- 56 result in foo+bar.dts 58 ---- foo+bar.dts ------------------------------------------------------------- 59 /* FOO platform + bar peripheral */ 61 compatible = "corp,foo"; 79 ---- foo+bar.dts -------------------------------------------------------------
|
| /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 | pinctl.rst | 75 .name = "foo", 362 group "foo":: 364 pinctrl_get_group_pins(pctl, "foo", &gpio_range.pins, 948 PIN_MAP_MUX_GROUP("uart", PINCTRL_STATE_DEFAULT, "pinctrl-foo", 950 PIN_MAP_CONFIGS_PIN("uart", PINCTRL_STATE_DEFAULT, "pinctrl-foo", 952 PIN_MAP_MUX_GROUP("uart", PINCTRL_STATE_SLEEP, "pinctrl-foo", 954 PIN_MAP_CONFIGS_PIN("uart", PINCTRL_STATE_SLEEP, "pinctrl-foo", 1004 .dev_name = "foo-spi.0", 1007 .ctrl_dev_name = "pinctrl-foo", 1011 .dev_name = "foo-i2c.0", [all …]
|
| /Documentation/devicetree/bindings/power/ |
| D | power_domain.txt | 52 compatible = "foo,power-controller"; 63 compatible = "foo,power-controller"; 69 compatible = "foo,power-controller"; 81 compatible = "foo,power-controller"; 88 compatible = "foo,power-controller"; 126 compatible = "foo,i-leak-current"; 133 compatible = "foo,i-leak-current"; 185 compatible = "foo,power-controller"; 192 compatible = "foo,i-leak-current"; 199 compatible = "foo,i-leak-current";
|
| /Documentation/RCU/ |
| D | rcu_dereference.txt | 197 struct foo { 202 struct foo *gp1; 203 struct foo *gp2; 207 struct foo *p; 223 struct foo *p; 224 struct foo *q; 249 struct foo { 255 struct foo *gp1; 256 struct foo *gp2; 260 struct foo *p; [all …]
|
| /Documentation/admin-guide/ |
| D | dynamic-debug-howto.rst | 259 If ``foo`` module is not built-in, ``foo.dyndbg`` will still be processed at 268 When ``modprobe foo`` is called, modprobe scans ``/proc/cmdline`` for 269 ``foo.params``, strips ``foo.``, and passes them to the kernel along with 275 options foo dyndbg=+pt 276 options foo dyndbg # defaults to +p 278 2. ``foo.dyndbg`` as given in boot args, ``foo.`` is stripped and passed:: 280 foo.dyndbg=" func bar +p; func buz +mp" 284 modprobe foo dyndbg==pmf # override previous settings 291 In the ``foo.dyndbg="QUERY"`` form, the query must exclude ``module foo``. 292 ``foo`` is extracted from the param-name, and applied to each query in
|
| /Documentation/driver-api/gpio/ |
| D | board.rst | 30 compatible = "acme,foo"; 72 Device (FOO) { 90 ^FOO, 0, 0, 1, 91 ^FOO, 1, 0, 1, 92 ^FOO, 2, 0, 1, 97 Package () {^FOO, 3, 0, 0}, 148 .dev_id = "foo.0", 162 The driver controlling "foo.0" will then be able to obtain its GPIOs as follows:: 186 GPIO_HOG("gpio.0", 10, "foo", GPIO_ACTIVE_LOW, GPIOD_OUT_HIGH),
|
| /Documentation/media/kapi/ |
| 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); 167 v4l2_ctrl_handler_init(&foo->ctrl_handler, nr_of_controls); 168 v4l2_ctrl_new_std(&foo->ctrl_handler, &foo_ctrl_ops, 170 v4l2_ctrl_new_std(&foo->ctrl_handler, &foo_ctrl_ops, 172 v4l2_ctrl_new_std_menu(&foo->ctrl_handler, &foo_ctrl_ops, 176 v4l2_ctrl_new_int_menu(&foo->ctrl_handler, &foo_ctrl_ops, 181 v4l2_ctrl_new_std_menu_items(&foo->ctrl_handler, &foo_ctrl_ops, [all …]
|
| /Documentation/devicetree/bindings/rtc/ |
| D | faraday,ftrtc010.txt | 26 clocks = <&foo 0>, <&foo 1>;
|
| /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
|
| D | kernel-doc.rst | 51 scripts/kernel-doc -v -none drivers/foo/bar.c 270 #) When documenting nested structs or unions, if the struct/union ``foo`` 272 ``@foo.bar:`` 285 * struct foo - Brief description. 286 * @foo: The Foo member. 288 struct foo { 289 int foo; 304 /** @bar2: Description for struct @bar2 inside @foo */ 307 * @bar2.barbar: Description for @barbar inside @foo.bar2 394 See function :c:func:`foo` and struct/union/enum/typedef :c:type:`bar`. [all …]
|
| /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/translations/it_IT/doc-guide/ |
| D | parse-headers.rst | 166 enum foo { BAR1, BAR2, PRIVATE }; 170 replace symbol BAR1 :c:type:\`foo\` 171 replace symbol BAR2 :c:type:\`foo\` 176 enum foo { BAR1, BAR2, PRIVATE }; 178 Genererà un riferimento ai valori BAR1 e BAR2 dal simbolo foo nel dominio C.
|
| D | kernel-doc.rst | 80 scripts/kernel-doc -v -none drivers/foo/bar.c 302 di nome ``foo``, il suo campo ``bar`` dev'essere documentato 303 usando ``@foo.bar:`` 316 * struct foo - Brief description. 317 * @foo: The Foo member. 319 struct foo { 320 int foo; 335 /** @bar2: Description for struct @bar2 inside @foo */ 338 * @bar2.barbar: Description for @barbar inside @foo.bar2 426 See function :c:func:`foo` and struct/union/enum/typedef :c:type:`bar`. [all …]
|
| /Documentation/core-api/ |
| D | xarray.rst | 237 void foo_init(struct foo *foo) 239 xa_init_flags(&foo->array, XA_FLAGS_LOCK_BH); 242 int foo_store(struct foo *foo, unsigned long index, void *entry) 246 xa_lock_bh(&foo->array); 247 err = xa_err(__xa_store(&foo->array, index, entry, GFP_KERNEL)); 249 foo->count++; 250 xa_unlock_bh(&foo->array); 255 void foo_erase(struct foo *foo, unsigned long index) 257 xa_lock(&foo->array); 258 __xa_erase(&foo->array, index); [all …]
|
| /Documentation/devicetree/bindings/iio/gyroscope/ |
| D | invensense,mpu3050.txt | 28 interrupt-parent = <&foo>; 41 interrupt-parent = <&foo>;
|
| /Documentation/power/ |
| D | runtime_pm.rst | 875 foo_read_or_write(struct foo_priv *foo, void *data) 877 lock(&foo->private_lock); 878 add_request_to_io_queue(foo, data); 879 if (foo->num_pending_requests++ == 0) 880 pm_runtime_get(&foo->dev); 881 if (!foo->is_suspended) 882 foo_process_next_request(foo); 883 unlock(&foo->private_lock); 886 foo_io_completion(struct foo_priv *foo, void *req) 888 lock(&foo->private_lock); [all …]
|
| /Documentation/translations/zh_CN/process/ |
| D | coding-style.rst | 264 名字。称一个全局函数为 ``foo`` 是一个难以饶恕的错误。 441 kfree(foo->bar); 442 kfree(foo); 445 这段代码的错误是,在某些退出路径上 ``foo`` 是 NULL。通常情况下,通过把它分离 451 kfree(foo->bar); 453 kfree(foo); 660 #define FOO(x) \ 673 #define FOO(val) bar(index, val) 678 3) 作为左值的带参数的宏: FOO(x) = y;如果有人把 FOO 变成一个内联函数的话,这 693 #define FOO(x) \ [all …]
|
| /Documentation/filesystems/ |
| D | befs.txt | 50 Assuming that your kernel source is in /foo/bar/linux and the patchfile 53 cd /foo/bar/linux 68 cd /foo/bar/linux
|
| /Documentation/target/ |
| D | tcm_mod_builder.rst | 99 …target:/mnt/sdb/lio-core-2.6.git# mkdir -p /sys/kernel/config/target/nab5000/iqn.foo/tpgt_1/lun/lu… 100 target:/mnt/sdb/lio-core-2.6.git# cd /sys/kernel/config/target/nab5000/iqn.foo/tpgt_1/lun/lun_0/ 101 …target:/sys/kernel/config/target/nab5000/iqn.foo/tpgt_1/lun/lun_0# ln -s /sys/kernel/config/target… 103 target:/sys/kernel/config/target/nab5000/iqn.foo/tpgt_1/lun/lun_0# cd - 107 |-- iqn.foo
|