Home
last modified time | relevance | path

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

/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dcpumask_failure.c91 cpumask = bpf_kptr_xchg(&v->cpumask, NULL); in BPF_PROG()
117 prev = bpf_kptr_xchg(&global_mask, local); in BPF_PROG()
151 prev = bpf_kptr_xchg(&global_mask, local); in BPF_PROG()
179 prev = bpf_kptr_xchg(&global_mask, curr); in BPF_PROG()
186 prev = bpf_kptr_xchg(&global_mask, curr); in BPF_PROG()
Dlocal_kptr_stash.c63 res = bpf_kptr_xchg(&mapval->node, res); in create_and_stash()
91 res = bpf_kptr_xchg(&mapval->plain, res); in stash_plain()
109 res = bpf_kptr_xchg(&mapval->node, NULL); in unstash_rb_node()
129 res = bpf_kptr_xchg(&mapval->val, NULL); in stash_test_ref_kfunc()
Dmap_kptr_fail.c71 bpf_kptr_xchg((void *)v + id, NULL); in non_const_var_off_kptr_xchg()
215 bpf_kptr_xchg(&v->unref_ptr, NULL); in reject_kptr_xchg_on_unref()
269 bpf_kptr_xchg(&v->ref_ptr, p); in reject_untrusted_xchg()
289 bpf_kptr_xchg(&v->ref_memb_ptr, ref_ptr); in reject_bad_type_xchg()
308 bpf_kptr_xchg(&v->ref_memb_ptr, &ref_ptr->memb); in reject_member_of_ref_xchg()
362 bpf_kptr_xchg(&v->ref_ptr, p); in kptr_xchg_ref_state()
381 p = bpf_kptr_xchg(&v->ref_ptr, p); in kptr_xchg_possibly_null()
Dmap_kptr.c155 p = bpf_kptr_xchg(&v->ref_ptr, NULL); in test_kptr_ref()
175 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_kptr_ref()
313 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_map_kptr_ref_pre()
321 p = bpf_kptr_xchg(&v->ref_ptr, NULL); in test_map_kptr_ref_pre()
333 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_map_kptr_ref_pre()
358 p = bpf_kptr_xchg(&v->ref_ptr, NULL); in test_map_kptr_ref_post()
366 p = bpf_kptr_xchg(&v->ref_ptr, p); in test_map_kptr_ref_post()
Dtest_bpf_ma.c61 old = bpf_kptr_xchg(&value->data, new); in batch_alloc_free()
75 old = bpf_kptr_xchg(&value->data, NULL); in batch_alloc_free()
Drefcounted_kptr.c123 n = bpf_kptr_xchg(&mapval->node, n); in __stash_map_insert_tree()
216 n = bpf_kptr_xchg(&mapval->node, n); in __read_from_unstash()
422 n = bpf_kptr_xchg(&mapval->node, n); in __stash_map_empty_xchg()
462 n = bpf_kptr_xchg(&mapval->node, NULL); in rbtree_wrong_owner_remove_fail_b()
486 m = bpf_kptr_xchg(&mapval->node, NULL); in rbtree_wrong_owner_remove_fail_a2()
Dcgrp_kfunc_failure.c147 kptr = bpf_kptr_xchg(&v->cgrp, NULL); in BPF_PROG()
231 old = bpf_kptr_xchg(&v->cgrp, acquired); in BPF_PROG()
Djit_probe_mem.c21 p = bpf_kptr_xchg(&v, p); in test_jit_probe_mem()
Dtask_kfunc_failure.c142 kptr = bpf_kptr_xchg(&v->task, NULL); in BPF_PROG()
218 old = bpf_kptr_xchg(&v->task, acquired); in BPF_PROG()
Dlocal_kptr_stash_fail.c59 res = bpf_kptr_xchg(&mapval->node, res); in stash_rb_nodes()
Dtask_kfunc_common.h67 old = bpf_kptr_xchg(&v->task, acquired); in tasks_kfunc_map_insert()
Dcgrp_kfunc_common.h70 old = bpf_kptr_xchg(&v->cgrp, acquired); in cgrps_kfunc_map_insert()
Dcb_refs.c60 p = bpf_kptr_xchg(&v->ptr, p); in leak_prog()
Dcpumask_success.c421 cpumask = bpf_kptr_xchg(&v->cpumask, NULL); in BPF_PROG()
442 prev = bpf_kptr_xchg(&global_mask, local); in BPF_PROG()
Dcgrp_kfunc_success.c96 kptr = bpf_kptr_xchg(&v->cgrp, NULL); in BPF_PROG()
Dcpumask_common.h112 old = bpf_kptr_xchg(&v->cpumask, mask); in cpumask_map_insert()
Dtask_kfunc_success.c164 kptr = bpf_kptr_xchg(&v->task, NULL); in BPF_PROG()
/Linux-v6.6/Documentation/bpf/
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
162 * bpf_kptr_xchg() between the bpf_map_lookup_elem()
Dbpf_design_QA.rst325 fields and bpf_kptr_xchg() helper will continue to be supported across kernel
Dkfuncs.rst186 referenced kptr (by invoking bpf_kptr_xchg). If not, the verifier fails the
/Linux-v6.6/kernel/bpf/
Dhelpers.c1399 BPF_CALL_2(bpf_kptr_xchg, void *, map_value, void *, ptr) in BPF_CALL_2() argument
1411 .func = bpf_kptr_xchg,