Home
last modified time | relevance | path

Searched full:foo (Results 1 – 25 of 448) sorted by relevance

12345678910>>...18

/linux-5.10/Documentation/driver-api/driver-model/
Ddesign-patterns.rst24 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 …]
/linux-5.10/samples/trace_events/
Dtrace-events-sample.h70 * Here it is trace_foo_bar(char *foo, int bar).
73 * Here it is simply "foo, bar".
85 * __field(int, foo)
87 * __entry->foo = 5;
94 * __field_struct(struct bar, foo)
102 * __array( char, foo, 10) is the same as saying: char foo[10];
106 * __entry->foo[0] = 'a';
108 * memcpy(__entry->foo, bar, 10);
119 * __dynamic_array( int, foo, bar) is similar to: int foo[bar];
124 * memcpy(__get_dynamic_array(foo), bar, 10);
[all …]
/linux-5.10/samples/kobject/
Dkset-example.c18 * Then tree kobjects are created and assigned to this kset, "foo", "baz",
31 int foo; member
40 ssize_t (*show)(struct foo_obj *foo, struct foo_attribute *attr, char *buf);
41 ssize_t (*store)(struct foo_obj *foo, struct foo_attribute *attr, const char *buf, size_t count);
57 struct foo_obj *foo; in foo_attr_show() local
60 foo = to_foo_obj(kobj); in foo_attr_show()
65 return attribute->show(foo, attribute, buf); in foo_attr_show()
77 struct foo_obj *foo; in foo_attr_store() local
80 foo = to_foo_obj(kobj); in foo_attr_store()
85 return attribute->store(foo, attribute, buf, len); in foo_attr_store()
[all …]
Dkobject-example.c17 * "foo", "baz", and "bar". If an integer is written to these files, it can be
21 static int foo; variable
26 * The "foo" file where a static variable is read from and written to.
31 return sprintf(buf, "%d\n", foo); in foo_show()
39 ret = kstrtoint(buf, 10, &foo); in foo_store()
48 __ATTR(foo, 0664, foo_show, foo_store);
/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dcgroup_attach_override.c7 #define FOO "/foo" macro
8 #define BAR "/foo/bar/"
28 int drop_prog = -1, allow_prog = -1, foo = -1, bar = -1; in test_cgroup_attach_override() local
41 foo = test__join_cgroup(FOO); in test_cgroup_attach_override()
42 if (CHECK(foo < 0, "cgroup_join_foo", "cgroup setup failed\n")) in test_cgroup_attach_override()
45 if (CHECK(bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS, in test_cgroup_attach_override()
48 "attach prog to %s failed, errno=%d\n", FOO, errno)) in test_cgroup_attach_override()
87 if (CHECK(bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override()
89 "detach prog from %s failed, errno=%d\n", FOO, errno)) in test_cgroup_attach_override()
111 if (CHECK(!bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in test_cgroup_attach_override()
[all …]
/linux-5.10/tools/testing/selftests/ftrace/test.d/instances/
Dinstance-event.tc7 rmdir foo 2>/dev/null
29 mkdir foo 2> /dev/null
30 rmdir foo 2> /dev/null
36 cat foo/trace 1> /dev/null 2>&1
42 echo 1 > foo/events/sched/sched_switch
69 mkdir foo
70 ls foo > /dev/null
71 rmdir foo
72 if [ -d foo ]; then
73 fail "foo still exists"
[all …]
/linux-5.10/drivers/gpu/drm/nouveau/include/nvif/
Dlist.h36 * We need to keep a list of struct foo in the parent struct bar, i.e. what
41 * struct foo *list_of_foos; -----> struct foo {}, struct foo {}, struct foo{}
54 * struct foo {
68 * struct foo *foo = malloc(...);
70 * list_add(&foo->entry, &bar.list_of_foos);
74 * list_del(&foo->entry);
75 * free(foo);
80 * Looping through the list requires a 'struct foo' as iterator and the
83 * struct foo *iterator;
92 * struct foo *iterator, *next;
[all …]
/linux-5.10/tools/perf/Documentation/
Dcallchain-overhead-calculation.txt24 void foo(void) {
30 foo();
39 In this case 'foo' is a child of 'bar', and 'bar' is an immediate
40 child of 'main' so 'foo' also is a child of 'main'. In other words,
41 'main' is a parent of 'foo' and 'bar', and 'bar' is a parent of 'foo'.
43 Suppose all samples are recorded in 'foo' and 'bar' only. When it's
50 60.00% foo
52 --- foo
65 child functions (i.e. 'foo' and 'bar') are added to the parents to
87 60.00% 60.00% foo
[all …]
/linux-5.10/lib/
Dtest_debug_virtual.c16 struct foo { struct
20 static struct foo *foo; argument
32 foo = kzalloc(sizeof(*foo), GFP_KERNEL); in test_debug_virtual_init()
33 if (!foo) in test_debug_virtual_init()
36 pa = virt_to_phys(foo); in test_debug_virtual_init()
37 va = foo; in test_debug_virtual_init()
46 kfree(foo); in test_debug_virtual_exit()
/linux-5.10/Documentation/admin-guide/
Dbootconfig.rst48 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 …]
Ddynamic-debug-howto.rst271 If ``foo`` module is not built-in, ``foo.dyndbg`` will still be processed at
280 When ``modprobe foo`` is called, modprobe scans ``/proc/cmdline`` for
281 ``foo.params``, strips ``foo.``, and passes them to the kernel along with
287 options foo dyndbg=+pt
288 options foo dyndbg # defaults to +p
290 2. ``foo.dyndbg`` as given in boot args, ``foo.`` is stripped and passed::
292 foo.dyndbg=" func bar +p; func buz +mp"
296 modprobe foo dyndbg==pmf # override previous settings
303 In the ``foo.dyndbg="QUERY"`` form, the query must exclude ``module foo``.
304 ``foo`` is extracted from the param-name, and applied to each query in
/linux-5.10/Documentation/driver-api/
Dpinctl.rst75 .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 …]
/linux-5.10/Documentation/kbuild/
Dkconfig-macro-language.rst16 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 …]
Dkconfig-language.rst124 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
162 tristate "foo"
172 FOO BAR BAZ's default choice for BAZ
187 Note: If the combination of FOO=y and BAR=m causes a link error,
193 baz_register(&foo);
197 Note: If the feature provided by BAZ is highly desirable for FOO,
[all …]
/linux-5.10/Documentation/devicetree/
Doverlay-notes.rst21 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 -----------------------------------------------------------
/linux-5.10/samples/bpf/
Dtcp_bpf.readme7 mkdir -p /tmp/cgroupv2/foo
9 echo $$ >> /tmp/cgroupv2/foo/cgroup.procs
11 Anything that runs under this shell belongs to the foo cgroupv2. To load
15 bpftool cgroup attach /tmp/cgroupv2/foo sock_ops pinned /sys/fs/bpf/tcp_prog
28 bpftool cgroup detach /tmp/cgroupv2/foo sock_ops pinned /sys/fs/bpf/tcp_prog
Dtest_cgrp2_sock2.sh20 mkdir -p /tmp/cgroupv2/foo
21 echo $$ >> /tmp/cgroupv2/foo/cgroup.procs
26 test_cgrp2_sock2 /tmp/cgroupv2/foo sock_flags_kern.o $1
31 if [ -d /tmp/cgroupv2/foo ]; then
32 test_cgrp2_sock -d /tmp/cgroupv2/foo
/linux-5.10/tools/testing/selftests/bpf/progs/
Dtest_global_data.c24 struct foo { struct
34 __type(value, struct foo); argument
52 static const struct foo struct0 = {
57 static struct foo struct1;
58 static const struct foo struct2;
59 static struct foo struct3 = {
/linux-5.10/Documentation/RCU/
Drcu_dereference.rst201 struct foo {
206 struct foo *gp1;
207 struct foo *gp2;
211 struct foo *p;
227 struct foo *p;
228 struct foo *q;
253 struct foo {
259 struct foo *gp1;
260 struct foo *gp2;
264 struct foo *p;
[all …]
/linux-5.10/Documentation/devicetree/bindings/clock/
Dmaxim,max77686.txt61 foo@0 {
62 compatible = "bar,foo";
86 foo@0 {
87 compatible = "bar,foo";
109 foo@0 {
110 compatible = "bar,foo";
/linux-5.10/Documentation/driver-api/media/
Dv4l2-controls.rst87 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 …]
/linux-5.10/tools/perf/tests/
Dexpr.c28 expr__add_id_val(&ctx, strdup("FOO"), 1); in test__expr()
32 ret |= test(&ctx, "FOO+BAR", 3); in test__expr()
35 ret |= test(&ctx, "(FOO-1)*2 + (BAR/2)%2 - -4", 5); in test__expr()
55 p = "FOO/0"; in test__expr()
65 expr__find_other("FOO + BAR + BAZ + BOZO", "FOO", in test__expr()
/linux-5.10/net/netfilter/ipset/
Dip_set_hash_ipmac.c44 __be32 foo[2]; member
89 struct hash_ipmac4_elem e = { .ip = 0, { .foo[0] = 0, .foo[1] = 0 } }; in hash_ipmac4_kadt()
114 struct hash_ipmac4_elem e = { .ip = 0, { .foo[0] = 0, .foo[1] = 0 } }; in hash_ipmac4_uadt()
151 __be32 foo[2]; member
204 { .foo[0] = 0, .foo[1] = 0 } in hash_ipmac6_kadt()
232 { .foo[0] = 0, .foo[1] = 0 } in hash_ipmac6_uadt()
/linux-5.10/Documentation/driver-api/gpio/
Dboard.rst30 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},
153 .dev_id = "foo.0",
167 The driver controlling "foo.0" will then be able to obtain its GPIOs as follows::
191 GPIO_HOG("gpio.0", 10, "foo", GPIO_ACTIVE_LOW, GPIOD_OUT_HIGH),
/linux-5.10/arch/ia64/scripts/
Dcheck-text-align.S2 .proc foo label
4 foo: .save rp, r2 label
7 .endp foo

12345678910>>...18