Home
last modified time | relevance | path

Searched refs:old_array (Results 1 – 8 of 8) sorted by relevance

/linux-6.6.21/drivers/media/rc/
Dbpf-lirc.c139 struct bpf_prog_array *old_array; in lirc_bpf_attach() local
157 old_array = lirc_rcu_dereference(raw->progs); in lirc_bpf_attach()
158 if (old_array && bpf_prog_array_length(old_array) >= BPF_MAX_PROGS) { in lirc_bpf_attach()
163 ret = bpf_prog_array_copy(old_array, NULL, prog, 0, &new_array); in lirc_bpf_attach()
168 bpf_prog_array_free(old_array); in lirc_bpf_attach()
177 struct bpf_prog_array *old_array; in lirc_bpf_detach() local
195 old_array = lirc_rcu_dereference(raw->progs); in lirc_bpf_detach()
196 ret = bpf_prog_array_copy(old_array, prog, NULL, 0, &new_array); in lirc_bpf_detach()
206 bpf_prog_array_free(old_array); in lirc_bpf_detach()
/linux-6.6.21/kernel/bpf/
Dnet_namespace.c107 struct bpf_prog_array *old_array, *new_array; in bpf_netns_link_release() local
134 old_array = rcu_dereference_protected(net->bpf.run_array[type], in bpf_netns_link_release()
138 WARN_ON(bpf_prog_array_delete_safe_at(old_array, idx)); in bpf_netns_link_release()
143 bpf_prog_array_free(old_array); in bpf_netns_link_release()
Dcgroup.c279 struct bpf_prog_array *old_array; in cgroup_bpf_release() local
307 old_array = rcu_dereference_protected( in cgroup_bpf_release()
310 bpf_prog_array_free(old_array); in cgroup_bpf_release()
447 struct bpf_prog_array *old_array) in activate_effective_progs() argument
449 old_array = rcu_replace_pointer(cgrp->bpf.effective[atype], old_array, in activate_effective_progs()
454 bpf_prog_array_free(old_array); in activate_effective_progs()
Dcore.c2576 int bpf_prog_array_copy(struct bpf_prog_array *old_array, in bpf_prog_array_copy() argument
2590 if (old_array) { in bpf_prog_array_copy()
2591 existing = old_array->items; in bpf_prog_array_copy()
2626 existing = old_array->items; in bpf_prog_array_copy()
/linux-6.6.21/kernel/trace/
Dbpf_trace.c2165 struct bpf_prog_array *old_array; in perf_event_attach_bpf_prog() local
2183 old_array = bpf_event_rcu_dereference(event->tp_event->prog_array); in perf_event_attach_bpf_prog()
2184 if (old_array && in perf_event_attach_bpf_prog()
2185 bpf_prog_array_length(old_array) >= BPF_TRACE_MAX_PROGS) { in perf_event_attach_bpf_prog()
2190 ret = bpf_prog_array_copy(old_array, NULL, prog, bpf_cookie, &new_array); in perf_event_attach_bpf_prog()
2198 bpf_prog_array_free_sleepable(old_array); in perf_event_attach_bpf_prog()
2207 struct bpf_prog_array *old_array; in perf_event_detach_bpf_prog() local
2216 old_array = bpf_event_rcu_dereference(event->tp_event->prog_array); in perf_event_detach_bpf_prog()
2217 ret = bpf_prog_array_copy(old_array, event->prog, NULL, 0, &new_array); in perf_event_detach_bpf_prog()
2221 bpf_prog_array_delete_safe(old_array, event->prog); in perf_event_detach_bpf_prog()
[all …]
/linux-6.6.21/mm/
Dmemblock.c418 struct memblock_region *new_array, *old_array; in memblock_double_array() local
482 old_array = type->regions; in memblock_double_array()
488 kfree(old_array); in memblock_double_array()
489 else if (old_array != memblock_memory_init_regions && in memblock_double_array()
490 old_array != memblock_reserved_init_regions) in memblock_double_array()
491 memblock_free(old_array, old_alloc_size); in memblock_double_array()
/linux-6.6.21/net/sched/
Dsch_fq.c698 struct rb_root *old_array, u32 old_log, in fq_rehash() argument
708 oroot = &old_array[idx]; in fq_rehash()
/linux-6.6.21/include/linux/
Dbpf.h1871 int bpf_prog_array_copy(struct bpf_prog_array *old_array,