Home
last modified time | relevance | path

Searched refs:bpf_kptr_xchg (Results 1 – 17 of 17) sorted by relevance

/linux-6.3-rc2/tools/testing/selftests/bpf/progs/
A Dmap_kptr.c96 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 Dmap_kptr_fail.c74 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 Dcgrp_kfunc_failure.c178 kptr = bpf_kptr_xchg(&v->cgrp, NULL); in BPF_PROG()
259 old = bpf_kptr_xchg(&v->cgrp, acquired); in BPF_PROG()
A Djit_probe_mem.c23 p = bpf_kptr_xchg(&v, p); in test_jit_probe_mem()
A Dtask_kfunc_failure.c178 kptr = bpf_kptr_xchg(&v->task, NULL); in BPF_PROG()
259 old = bpf_kptr_xchg(&v->task, acquired); in BPF_PROG()
A Dcgrp_kfunc_common.h63 old = bpf_kptr_xchg(&v->cgrp, acquired); in cgrps_kfunc_map_insert()
A Dtask_kfunc_common.h63 old = bpf_kptr_xchg(&v->task, acquired); in tasks_kfunc_map_insert()
A Dcpumask_failure.c88 cpumask = bpf_kptr_xchg(&v->cpumask, NULL); in BPF_PROG()
A Dcb_refs.c63 p = bpf_kptr_xchg(&v->ptr, p); in leak_prog()
A Dcgrp_kfunc_success.c83 kptr = bpf_kptr_xchg(&v->cgrp, NULL); in BPF_PROG()
A Dtask_kfunc_success.c92 kptr = bpf_kptr_xchg(&v->task, NULL); in BPF_PROG()
A Dcpumask_common.h105 old = bpf_kptr_xchg(&v->cpumask, mask); in cpumask_map_insert()
A Dcpumask_success.c389 cpumask = bpf_kptr_xchg(&v->cpumask, NULL); in BPF_PROG()
/linux-6.3-rc2/Documentation/bpf/
A Dcpumasks.rst84 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 Dkfuncs.rst148 referenced kptr (by invoking bpf_kptr_xchg). If not, the verifier fails the
565 * bpf_kptr_xchg() between the bpf_map_lookup_elem()
A Dbpf_design_QA.rst330 fields and bpf_kptr_xchg() helper will continue to be supported across kernel
/linux-6.3-rc2/kernel/bpf/
A Dhelpers.c1389 BPF_CALL_2(bpf_kptr_xchg, void *, map_value, void *, ptr) in BPF_CALL_2() argument
1401 .func = bpf_kptr_xchg,

Completed in 21 milliseconds