Searched refs:bpf_kptr_xchg (Results 1 – 17 of 17) sorted by relevance
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | map_kptr.c | 96 p = bpf_kptr_xchg(&v->ref_ptr, NULL); in test_kptr_ref() 111 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_kptr_ref() 216 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_map_kptr_ref() 235 p = bpf_kptr_xchg(&v->ref_ptr, NULL); in test_map_kptr_ref() 245 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_map_kptr_ref() 275 p = bpf_kptr_xchg(&v->ref_ptr, NULL); in test_map_kptr_ref2() 283 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_map_kptr_ref2()
|
A D | map_kptr_fail.c | 74 bpf_kptr_xchg((void *)v + id, NULL); in non_const_var_off_kptr_xchg() 218 bpf_kptr_xchg(&v->unref_ptr, NULL); in reject_kptr_xchg_on_unref() 333 bpf_kptr_xchg(&v->ref_ptr, p); in reject_untrusted_xchg() 353 bpf_kptr_xchg(&v->ref_memb_ptr, ref_ptr); in reject_bad_type_xchg() 372 bpf_kptr_xchg(&v->ref_memb_ptr, &ref_ptr->memb); in reject_member_of_ref_xchg() 426 bpf_kptr_xchg(&v->ref_ptr, p); in kptr_xchg_ref_state()
|
A D | cgrp_kfunc_failure.c | 178 kptr = bpf_kptr_xchg(&v->cgrp, NULL); in BPF_PROG() 259 old = bpf_kptr_xchg(&v->cgrp, acquired); in BPF_PROG()
|
A D | jit_probe_mem.c | 23 p = bpf_kptr_xchg(&v, p); in test_jit_probe_mem()
|
A D | task_kfunc_failure.c | 178 kptr = bpf_kptr_xchg(&v->task, NULL); in BPF_PROG() 259 old = bpf_kptr_xchg(&v->task, acquired); in BPF_PROG()
|
A D | cgrp_kfunc_common.h | 63 old = bpf_kptr_xchg(&v->cgrp, acquired); in cgrps_kfunc_map_insert()
|
A D | task_kfunc_common.h | 63 old = bpf_kptr_xchg(&v->task, acquired); in tasks_kfunc_map_insert()
|
A D | cpumask_failure.c | 88 cpumask = bpf_kptr_xchg(&v->cpumask, NULL); in BPF_PROG()
|
A D | cb_refs.c | 63 p = bpf_kptr_xchg(&v->ptr, p); in leak_prog()
|
A D | cgrp_kfunc_success.c | 83 kptr = bpf_kptr_xchg(&v->cgrp, NULL); in BPF_PROG()
|
A D | task_kfunc_success.c | 92 kptr = bpf_kptr_xchg(&v->task, NULL); in BPF_PROG()
|
A D | cpumask_common.h | 105 old = bpf_kptr_xchg(&v->cpumask, mask); in cpumask_map_insert()
|
A D | cpumask_success.c | 389 cpumask = bpf_kptr_xchg(&v->cpumask, NULL); in BPF_PROG()
|
/linux-6.3-rc2/Documentation/bpf/ |
A D | cpumasks.rst | 84 old = bpf_kptr_xchg(&v->cpumask, mask); 119 a map, the reference can be removed from the map with bpf_kptr_xchg(), or 166 * bpf_kptr_xchg() between the bpf_map_lookup_elem()
|
A D | kfuncs.rst | 148 referenced kptr (by invoking bpf_kptr_xchg). If not, the verifier fails the 565 * bpf_kptr_xchg() between the bpf_map_lookup_elem()
|
A D | bpf_design_QA.rst | 330 fields and bpf_kptr_xchg() helper will continue to be supported across kernel
|
/linux-6.3-rc2/kernel/bpf/ |
A D | helpers.c | 1389 BPF_CALL_2(bpf_kptr_xchg, void *, map_value, void *, ptr) in BPF_CALL_2() argument 1401 .func = bpf_kptr_xchg,
|
Completed in 30 milliseconds