Home
last modified time | relevance | path

Searched refs:ptrs (Results 1 – 4 of 4) sorted by relevance

/kernel/bpf/
Dreuseport_array.c12 struct sock __rcu *ptrs[]; member
60 return rcu_dereference(array->ptrs[index]); in reuseport_array_lookup_elem()
74 if (!rcu_access_pointer(array->ptrs[index])) in reuseport_array_delete_elem()
79 sk = rcu_dereference_protected(array->ptrs[index], in reuseport_array_delete_elem()
84 RCU_INIT_POINTER(array->ptrs[index], NULL); in reuseport_array_delete_elem()
129 sk = rcu_dereference(array->ptrs[i]); in reuseport_array_free()
139 RCU_INIT_POINTER(array->ptrs[i], NULL); in reuseport_array_free()
280 rcu_access_pointer(array->ptrs[index]), in bpf_fd_reuseport_array_update_elem()
294 osk = rcu_dereference_protected(array->ptrs[index], in bpf_fd_reuseport_array_update_elem()
302 sk_user_data = (uintptr_t)&array->ptrs[index] | SK_USER_DATA_NOCOPY | in bpf_fd_reuseport_array_update_elem()
[all …]
Darraymap.c755 BUG_ON(array->ptrs[i] != NULL); in fd_array_map_free()
806 old_ptr = xchg(array->ptrs + index, new_ptr); in bpf_fd_array_map_update_elem()
810 old_ptr = xchg(array->ptrs + index, new_ptr); in bpf_fd_array_map_update_elem()
829 old_ptr = xchg(array->ptrs + index, NULL); in fd_array_map_delete_elem()
833 old_ptr = xchg(array->ptrs + index, NULL); in fd_array_map_delete_elem()
1168 ee = READ_ONCE(array->ptrs[i]); in perf_event_fd_array_release()
Dcore.c1588 prog = READ_ONCE(array->ptrs[index]); in ___bpf_prog_run()
/kernel/trace/
Dbpf_trace.c511 ee = READ_ONCE(array->ptrs[index]); in get_map_perf_counter()
583 ee = READ_ONCE(array->ptrs[index]); in __bpf_perf_event_output()
753 cgrp = READ_ONCE(array->ptrs[idx]); in BPF_CALL_2()