Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dmap_kptr.c94 p = bpf_kptr_xchg(&v->ref_ptr, NULL); in test_kptr_ref()
109 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_kptr_ref()
214 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_map_kptr_ref()
233 p = bpf_kptr_xchg(&v->ref_ptr, NULL); in test_map_kptr_ref()
243 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_map_kptr_ref()
273 p = bpf_kptr_xchg(&v->ref_ptr, NULL); in test_map_kptr_ref2()
281 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_map_kptr_ref2()
Dmap_kptr_fail.c70 bpf_kptr_xchg((void *)v + id, NULL); in non_const_var_off_kptr_xchg()
206 bpf_kptr_xchg(&v->unref_ptr, NULL); in reject_kptr_xchg_on_unref()
313 bpf_kptr_xchg(&v->ref_ptr, p); in reject_untrusted_xchg()
331 bpf_kptr_xchg(&v->ref_memb_ptr, ref_ptr); in reject_bad_type_xchg()
349 bpf_kptr_xchg(&v->ref_memb_ptr, &ref_ptr->memb); in reject_member_of_ref_xchg()
400 bpf_kptr_xchg(&v->ref_ptr, p); in kptr_xchg_ref_state()
Dcb_refs.c63 p = bpf_kptr_xchg(&v->ptr, p); in leak_prog()
/linux-6.1.9/kernel/bpf/
Dhelpers.c1372 BPF_CALL_2(bpf_kptr_xchg, void *, map_value, void *, ptr) in BPF_CALL_2() argument
1384 .func = bpf_kptr_xchg,
/linux-6.1.9/Documentation/bpf/
Dkfuncs.rst106 referenced kptr (by invoking bpf_kptr_xchg). If not, the verifier fails the