Home
last modified time | relevance | path

Searched refs:foo (Results 1 – 25 of 271) sorted by relevance

1234567891011

/linux/samples/trace_events/
H A Dtrace-events-sample.h293 TP_PROTO(const char *foo, int bar, const int *lst,
297 TP_ARGS(foo, bar, lst, string, mask, fmt, va),
300 __array( char, foo, 10 )
307 __string_len( lstr, foo, bar / 2 < strlen(foo) ? bar / 2 : strlen(foo) )
311 strscpy(__entry->foo, foo, 10);
323 __entry->foo, __entry->bar,
419 TP_PROTO(const char *foo, int bar),
421 TP_ARGS(foo, bar),
426 __string( foo, foo )
431 __assign_str(foo);
[all …]
/linux/samples/kobject/
H A Dkset-example.c31 int foo; member
40 ssize_t (*show)(struct foo_obj *foo, const struct foo_attribute *attr, char *buf);
41 ssize_t (*store)(struct foo_obj *foo, const struct foo_attribute *attr,
58 struct foo_obj *foo; in foo_attr_show() local
61 foo = to_foo_obj(kobj); in foo_attr_show()
66 return attribute->show(foo, attribute, buf); in foo_attr_show()
78 struct foo_obj *foo; in foo_attr_store() local
81 foo = to_foo_obj(kobj); in foo_attr_store()
86 return attribute->store(foo, attribute, buf, len); in foo_attr_store()
104 struct foo_obj *foo; in foo_release() local
[all …]
/linux/Documentation/translations/zh_CN/admin-guide/
H A Dbootconfig.rst46 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 …]
/linux/Documentation/translations/zh_TW/admin-guide/
H A Dbootconfig.rst46 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 …]
/linux/Documentation/driver-api/driver-model/
H A 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/drivers/gpu/drm/xe/tests/
H A Dxe_args_test.c12 #define foo X, Y, Z, Q in call_args_example() macro
13 #define bar COUNT_ARGS(foo) in call_args_example()
14 #define buz CALL_ARGS(COUNT_ARGS, foo) in call_args_example()
19 #undef foo in call_args_example()
26 #define foo X, Y, Z, Q in drop_first_arg_example() macro
27 #define bar CALL_ARGS(COUNT_ARGS, DROP_FIRST_ARG(foo)) in drop_first_arg_example()
31 #undef foo in drop_first_arg_example()
39 #define foo X, Y, Z, Q in first_arg_example() macro
40 #define bar FIRST_ARG(foo) in first_arg_example()
45 #undef foo in first_arg_example()
[all …]
/linux/tools/testing/selftests/ftrace/test.d/instances/
H A 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/enable
69 mkdir foo
70 ls foo > /dev/null
71 rmdir foo
72 if [ -d foo ]; then
76 mkdir foo
[all …]
/linux/lib/
H A 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/tools/perf/tests/shell/
H A Dtest_uprobe_from_different_cu.sh26 perf probe -x ${temp_dir}/testfile -d foo || true
40 cat > ${temp_dir}/testfile-foo.h << EOF
47 extern int foo (int i, struct t *t);
50 cat > ${temp_dir}/testfile-foo.c << EOF
51 #include "testfile-foo.h"
54 foo (int i, struct t *t)
65 #include "testfile-foo.h"
78 return foo (3, &g);
82 gcc -g -Og -flto -c ${temp_dir}/testfile-foo.c -o ${temp_dir}/testfile-foo
[all...]
/linux/tools/testing/selftests/bpf/progs/
H A Dverifier_helper_value_access.c9 long long foo; member
24 int foo[MAX_ENTRIES]; member
227 __imm_const(__imm_0, sizeof(struct test_val) - offsetof(struct test_val, foo)), in via_const_imm_full_range()
228 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in via_const_imm_full_range()
255 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in via_const_imm_partial_range()
281 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in via_const_imm_empty_range()
308 __imm_const(__imm_0, sizeof(struct test_val) - offsetof(struct test_val, foo) + 8), in imm_out_of_bound_range()
309 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in imm_out_of_bound_range()
336 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in const_imm_negative_range_adjustment_1()
363 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in const_imm_negative_range_adjustment_2()
[all …]
H A Dverifier_array_access.c12 int foo[MAX_ENTRIES]; member
72 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in an_array_with_a_constant_1()
99 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in __flag()
128 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in __flag()
161 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in __flag()
186 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in an_array_with_a_constant_2()
215 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in __flag()
244 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in __flag()
276 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in __flag()
308 __imm_const(test_val_foo, offsetof(struct test_val, foo)) in __flag()
[all …]
H A Dlinked_list.c13 struct bpf_list_head head __contains(foo, node2);
22 private(C) struct bpf_list_head ghead_array[2] __contains(foo, node2);
23 private(C) struct bpf_list_head ghead_array_one[1] __contains(foo, node2);
31 struct foo *f; in list_push_pop()
41 bpf_obj_drop(container_of(n, struct foo, node2)); in list_push_pop()
50 bpf_obj_drop(container_of(n, struct foo, node2)); in list_push_pop()
67 f = container_of(n, struct foo, node2); in list_push_pop()
82 f = container_of(n, struct foo, node2); in list_push_pop()
93 bpf_obj_drop(container_of(n, struct foo, node2)); in list_push_pop()
101 bpf_obj_drop(container_of(n, struct foo, node2)); in list_push_pop()
[all …]
H A Dlinked_list_fail.c12 struct foo *f, *f1, *f2; \
238 f = bpf_obj_new(struct foo); in obj_drop_non_zero_off()
248 return bpf_obj_new(struct foo)->data; in new_null_ret()
254 (void)bpf_obj_new(struct foo); in obj_new_acq()
261 struct foo *f; in use_after_drop()
289 struct foo *f; in direct_read_lock()
300 struct foo *f; in direct_write_lock()
312 struct foo *f; in direct_read_head()
323 struct foo *f; in direct_write_head()
335 struct foo *f; in direct_read_node()
[all …]
H A 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 = {
H A Dtest_global_func9.c30 __noinline int foo(const struct S *s) in foo() function
86 result |= foo(&s); in global_func9()
93 result |= foo(s); in global_func9()
99 result |= foo((const struct S *)&c); in global_func9()
103 result |= foo(NULL); in global_func9()
H A Dverifier_const.c9 const volatile long foo = 42; variable
19 bpf_strtol(buff, sizeof(buff), 0, (long *)&foo); in tcx1()
48 bpf_check_mtu(skb, skb->ifindex, (__u32 *)&foo, 0, 0); in tcx4()
85 write_fixed((void *)&foo, skb->mark); in tcx7()
94 write_dyn((void *)&foo, &bart, bpf_get_prandom_u32() & 3); in BPF_PROG()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dcgroup_attach_override.c28 int drop_prog = -1, allow_prog = -1, foo = -1, bar = -1; in serial_test_cgroup_attach_override() local
41 foo = test__join_cgroup(FOO); in serial_test_cgroup_attach_override()
42 if (CHECK(foo < 0, "cgroup_join_foo", "cgroup setup failed\n")) in serial_test_cgroup_attach_override()
45 if (CHECK(bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_override()
87 if (CHECK(bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override()
111 if (CHECK(!bpf_prog_detach(foo, BPF_CGROUP_INET_EGRESS), in serial_test_cgroup_attach_override()
116 if (CHECK(bpf_prog_attach(allow_prog, foo, BPF_CGROUP_INET_EGRESS, 0), in serial_test_cgroup_attach_override()
132 if (CHECK(!bpf_prog_attach(allow_prog, foo, BPF_CGROUP_INET_EGRESS, in serial_test_cgroup_attach_override()
138 if (CHECK(bpf_prog_attach(drop_prog, foo, BPF_CGROUP_INET_EGRESS, 0), in serial_test_cgroup_attach_override()
144 close(foo); in serial_test_cgroup_attach_override()
H A Dtask_under_cgroup.c14 int ret, foo; in test_task_under_cgroup() local
17 foo = test__join_cgroup(FOO); in test_task_under_cgroup()
18 if (!ASSERT_OK(foo < 0, "cgroup_join_foo")) in test_task_under_cgroup()
59 close(foo); in test_task_under_cgroup()
/linux/Documentation/translations/zh_CN/core-api/
H A Dxarray.rst205 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 …]
/linux/tools/perf/Documentation/
H A Dcallchain-overhead-calculation.txt25 void foo(void) {
31 foo();
40 In this case 'foo' is a child of 'bar', and 'bar' is an immediate
41 child of 'main' so 'foo' also is a child of 'main'. In other words,
42 'main' is a parent of 'foo' and 'bar', and 'bar' is a parent of 'foo'.
44 Suppose all samples are recorded in 'foo' and 'bar' only. When it's
51 60.00% foo
53 --- foo
66 child functions (i.e. 'foo' an
[all...]
/linux/Documentation/translations/zh_CN/devicetree/
H A Doverlay-notes.rst26 让我们举个例子,我们有一个foo板,它的基本树形图如下::
28 ---- foo.dts ---------------------------------------------------------------
32 compatible = "corp,foo";
44 ---- foo.dts ---------------------------------------------------------------
61 当加载(并按照[1]中描述的方式解决)时,应该产生foo+bar.dts::
63 ---- foo+bar.dts -----------------------------------------------------------
66 compatible = "corp,foo";
84 ---- foo+bar.dts -----------------------------------------------------------
/linux/tools/memory-model/Documentation/
H A Daccess-marking.txt243 For example, ASSERT_EXCLUSIVE_ACCESS(foo) tells KCSAN that any
244 concurrent access to variable foo by any other CPU is an error, even
246 ASSERT_EXCLUSIVE_WRITER(foo) tells KCSAN that although it is OK for there
247 to be concurrent reads from foo from other CPUs, it is an error for some
248 other CPU to be concurrently writing to foo, even if that concurrent
269 For example, suppose a shared variable "foo" is read only while a
274 int foo;
280 foo = newval;
291 ret = foo;
298 pr_info("Current value of foo: %d\n", data_race(foo));
[all …]
/linux/rust/pin-init/
H A DREADME.md102 let foo = pin_init!(Foo {
108 `foo` now is of the type [`impl PinInit<Foo>`]. We can now use any smart pointer that we like
112 let foo: Result<Pin<Box<Foo>>, AllocError> = Box::pin_init(foo);
171 pub struct foo {
175 pub fn init_foo(ptr: *mut foo);
176 pub fn destroy_foo(ptr: *mut foo);
178 pub fn enable_foo(ptr: *mut foo, flags: u32) -> i32;
184 /// `foo` is always initialized
190 foo: UnsafeCell<MaybeUninit<bindings::foo>>,
197 // enabled `foo`,
[all …]
/linux/net/netfilter/ipset/
H A 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/tools/testing/selftests/net/
H A Dunicast_extensions.sh60 ip -n $foo_ns address add $1/$3 dev foo || return 1
61 ip -n $foo_ns link set foo up || return 1
88 ip -n $foo_ns address add $1/$5 dev foo || return 1
89 ip -n $foo_ns link set foo up || return 1
117 ip link add foo netns $foo_ns type veth peer name bar netns $bar_ns
141 ip link add foo netns $foo_ns type veth peer name foo1 netns $router_ns

1234567891011