Home
last modified time | relevance | path

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

12345678910>>...33

/kernel/linux/linux-4.19/Documentation/driver-model/
Ddesign-patterns.txt24 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 …]
/kernel/linux/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 …]
/kernel/linux/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 …]
/kernel/linux/linux-4.19/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 …]
/kernel/linux/linux-4.19/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 …]
/kernel/linux/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 …]
/kernel/linux/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 …]
/kernel/linux/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 …]
/kernel/linux/linux-4.19/tools/testing/selftests/ftrace/test.d/instances/
Dinstance-event.tc11 rmdir foo 2>/dev/null
33 mkdir foo 2> /dev/null
34 rmdir foo 2> /dev/null
40 cat foo/trace 1> /dev/null 2>&1
46 echo 1 > foo/events/sched/sched_switch
73 mkdir foo
74 ls foo > /dev/null
75 rmdir foo
76 if [ -d foo ]; then
77 fail "foo still exists"
[all …]
/kernel/linux/linux-4.19/samples/bpf/
Dtest_cgrp2_attach2.c36 #define FOO "/foo" macro
37 #define BAR "/foo/bar/"
65 int drop_prog, allow_prog, foo = 0, bar = 0, rc = 0; in test_foo_bar() local
78 /* Create cgroup /foo, get fd, and join it */ in test_foo_bar()
79 foo = create_and_get_cgroup(FOO); in test_foo_bar()
80 if (!foo) in test_foo_bar()
83 if (join_cgroup(FOO)) in test_foo_bar()
86 if (bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS, in test_foo_bar()
88 log_err("Attaching prog to /foo"); in test_foo_bar()
92 printf("Attached DROP prog. This ping in cgroup /foo should fail...\n"); in test_foo_bar()
[all …]
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
14 ./load_sock_ops -l /tmp/cgroupv2/foo tcp_basertt_kern.o
26 ./load_sock_ops -r /tmp/cgroupv2/foo
/kernel/linux/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 …]
/kernel/linux/linux-4.19/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 …]
/kernel/linux/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 …]
/kernel/linux/linux-4.19/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 …]
/kernel/linux/linux-5.10/lib/
Dtest_debug_virtual.c16 struct foo { struct
20 static struct foo *foo; variable
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()
/kernel/linux/linux-4.19/lib/
Dtest_debug_virtual.c15 struct foo { struct
19 static struct foo *foo; argument
31 foo = kzalloc(sizeof(*foo), GFP_KERNEL); in test_debug_virtual_init()
32 if (!foo) in test_debug_virtual_init()
35 pa = virt_to_phys(foo); in test_debug_virtual_init()
36 va = foo; in test_debug_virtual_init()
45 kfree(foo); in test_debug_virtual_exit()
/kernel/linux/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 …]
/kernel/linux/linux-4.19/Documentation/driver-api/
Dpinctl.rst75 .name = "foo",
371 group "foo"::
373 pinctrl_get_group_pins(pctl, "foo", &gpio_range.pins,
957 PIN_MAP_MUX_GROUP("uart", PINCTRL_STATE_DEFAULT, "pinctrl-foo",
959 PIN_MAP_CONFIGS_PIN("uart", PINCTRL_STATE_DEFAULT, "pinctrl-foo",
961 PIN_MAP_MUX_GROUP("uart", PINCTRL_STATE_SLEEP, "pinctrl-foo",
963 PIN_MAP_CONFIGS_PIN("uart", PINCTRL_STATE_SLEEP, "pinctrl-foo",
1013 .dev_name = "foo-spi.0",
1016 .ctrl_dev_name = "pinctrl-foo",
1020 .dev_name = "foo-i2c.0",
[all …]
/kernel/linux/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 …]
/kernel/linux/linux-4.19/Documentation/kbuild/
Dkconfig-macro-language.txt12 APP := foo
13 SRC := foo.c
22 foo: foo.c
23 gcc -o foo foo.c
34 def_bool $(shell, $(srctree)/scripts/gcc-check-foo.sh $(CC))
203 config FOO
204 int "foo"
211 config FOO
212 int "foo"
220 config FOO
[all …]
/kernel/linux/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 …]
/kernel/linux/linux-4.19/Documentation/RCU/
Drcu_dereference.txt197 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 …]
/kernel/linux/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 -----------------------------------------------------------
/kernel/linux/linux-4.19/Documentation/devicetree/
Doverlay-notes.txt18 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 -------------------------------------------------------------

12345678910>>...33