/Linux-v6.1/samples/trace_events/ |
D | trace-events-sample.h | 279 TP_PROTO(const char *foo, int bar, const int *lst, 283 TP_ARGS(foo, bar, lst, string, mask, fmt, va), 286 __array( char, foo, 10 ) 295 strlcpy(__entry->foo, foo, 10); 304 TP_printk("foo %s %d %s %s %s %s (%s) %s", __entry->foo, __entry->bar, 390 TP_PROTO(const char *foo, int bar), 392 TP_ARGS(foo, bar), 397 __string( foo, foo ) 402 __assign_str(foo, foo); 406 TP_printk("foo %s %d", __get_str(foo), __entry->bar) [all …]
|
/Linux-v6.1/samples/kobject/ |
D | kset-example.c | 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() 103 struct foo_obj *foo; in foo_release() local [all …]
|
D | kobject-example.c | 21 static int foo; variable 31 return sysfs_emit(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-v6.1/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 …]
|
/Linux-v6.1/tools/testing/selftests/net/ |
D | unicast_extensions.sh | 68 ip -n foo-ns address add $1/$3 dev foo || return 1 69 ip -n foo-ns link set foo up || return 1 73 ip netns exec foo-ns timeout 2 ping -c 1 $2 || return 1 76 nettest -B -N bar-ns -O foo-ns -r $1 || return 1 77 nettest -B -N foo-ns -O bar-ns -r $2 || return 1 96 ip -n foo-ns address add $1/$5 dev foo || return 1 97 ip -n foo-ns link set foo up || return 1 98 ip -n foo-ns route add default via $2 || return 1 109 ip netns exec foo-ns timeout 2 ping -c 1 $2 || return 1 110 ip netns exec foo-ns timeout 2 ping -c 1 $4 || return 1 [all …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/tools/testing/selftests/ftrace/test.d/instances/ |
D | instance-event.tc | 7 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 76 mkdir foo [all …]
|
/Linux-v6.1/lib/ |
D | test_debug_virtual.c | 16 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()
|
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/ |
D | cgroup_attach_override.c | 28 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()
|
/Linux-v6.1/Documentation/translations/zh_CN/devicetree/ |
D | overlay-notes.rst | 26 让我们举个例子,我们有一个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-v6.1/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 …]
|
/Linux-v6.1/tools/perf/Documentation/ |
D | callchain-overhead-calculation.txt | 24 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-v6.1/tools/memory-model/Documentation/ |
D | access-marking.txt | 220 For example, ASSERT_EXCLUSIVE_ACCESS(foo) tells KCSAN that any 221 concurrent access to variable foo by any other CPU is an error, even 223 ASSERT_EXCLUSIVE_WRITER(foo) tells KCSAN that although it is OK for there 224 to be concurrent reads from foo from other CPUs, it is an error for some 225 other CPU to be concurrently writing to foo, even if that concurrent 246 For example, suppose a shared variable "foo" is read only while a 251 int foo; 257 foo = newval; 268 ret = foo; 275 pr_info("Current value of foo: %d\n", data_race(foo)); [all …]
|
/Linux-v6.1/tools/testing/selftests/bpf/progs/ |
D | test_global_data.c | 24 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 = {
|
D | test_global_func9.c | 29 __noinline int foo(const struct S *s) in foo() function 84 result |= foo(&s); in test_cls() 91 result |= foo(s); in test_cls() 97 result |= foo((const struct S *)&c); in test_cls() 101 result |= foo(NULL); in test_cls()
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/net/netfilter/ipset/ |
D | ip_set_hash_ipmac.c | 44 __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-v6.1/tools/testing/selftests/damon/ |
D | debugfs_duplicate_context_creation.sh | 9 if ! echo foo > "$DBGFS/mk_contexts" 15 if echo foo > "$DBGFS/mk_contexts" 21 if ! echo foo > "$DBGFS/rm_contexts"
|
/Linux-v6.1/arch/ia64/scripts/ |
D | check-text-align.S | 2 .proc foo label 4 foo: .save rp, r2 label 7 .endp foo
|
/Linux-v6.1/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 }; 165 它会让BAR1和BAR2枚举符号交叉引用C域中的foo符号。
|
/Linux-v6.1/samples/bpf/ |
D | tcp_bpf.readme | 7 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
|
/Linux-v6.1/fs/gfs2/ |
D | main.c | 34 static void gfs2_init_inode_once(void *foo) in gfs2_init_inode_once() argument 36 struct gfs2_inode *ip = foo; in gfs2_init_inode_once() 50 static void gfs2_init_glock_once(void *foo) in gfs2_init_glock_once() argument 52 struct gfs2_glock *gl = foo; in gfs2_init_glock_once() 62 static void gfs2_init_gl_aspace_once(void *foo) in gfs2_init_gl_aspace_once() argument 64 struct gfs2_glock_aspace *gla = foo; in gfs2_init_gl_aspace_once()
|
/Linux-v6.1/drivers/net/wireless/ath/ |
D | ath.h | 298 #define ATH_DBG_WARN(foo, arg...) WARN(foo, arg) argument 299 #define ATH_DBG_WARN_ON_ONCE(foo) WARN_ON_ONCE(foo) argument 311 #define ATH_DBG_WARN(foo, arg...) do {} while (0) argument 312 #define ATH_DBG_WARN_ON_ONCE(foo) ({ \ argument 313 int __ret_warn_once = !!(foo); \
|
/Linux-v6.1/tools/testing/selftests/bpf/verifier/ |
D | helper_value_access.c | 108 BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, offsetof(struct test_val, foo)), 110 sizeof(struct test_val) - offsetof(struct test_val, foo)), 129 BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, offsetof(struct test_val, foo)), 149 BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, offsetof(struct test_val, foo)), 169 BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, offsetof(struct test_val, foo)), 171 sizeof(struct test_val) - offsetof(struct test_val, foo) + 8), 191 BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, offsetof(struct test_val, foo)), 212 BPF_ALU64_IMM(BPF_ADD, BPF_REG_1, offsetof(struct test_val, foo)), 233 BPF_MOV64_IMM(BPF_REG_3, offsetof(struct test_val, foo)), 236 sizeof(struct test_val) - offsetof(struct test_val, foo)), [all …]
|
/Linux-v6.1/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";
|