Searched refs:old_array (Results 1 – 8 of 8) sorted by relevance
/linux-6.1.9/drivers/media/rc/ |
D | bpf-lirc.c | 139 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.1.9/kernel/bpf/ |
D | net_namespace.c | 107 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()
|
D | cgroup.c | 279 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()
|
D | core.c | 2400 int bpf_prog_array_copy(struct bpf_prog_array *old_array, in bpf_prog_array_copy() argument 2414 if (old_array) { in bpf_prog_array_copy() 2415 existing = old_array->items; in bpf_prog_array_copy() 2450 existing = old_array->items; in bpf_prog_array_copy()
|
/linux-6.1.9/kernel/trace/ |
D | bpf_trace.c | 2110 struct bpf_prog_array *old_array; in perf_event_attach_bpf_prog() local 2128 old_array = bpf_event_rcu_dereference(event->tp_event->prog_array); in perf_event_attach_bpf_prog() 2129 if (old_array && in perf_event_attach_bpf_prog() 2130 bpf_prog_array_length(old_array) >= BPF_TRACE_MAX_PROGS) { in perf_event_attach_bpf_prog() 2135 ret = bpf_prog_array_copy(old_array, NULL, prog, bpf_cookie, &new_array); in perf_event_attach_bpf_prog() 2143 bpf_prog_array_free_sleepable(old_array); in perf_event_attach_bpf_prog() 2152 struct bpf_prog_array *old_array; in perf_event_detach_bpf_prog() local 2161 old_array = bpf_event_rcu_dereference(event->tp_event->prog_array); in perf_event_detach_bpf_prog() 2162 ret = bpf_prog_array_copy(old_array, event->prog, NULL, 0, &new_array); in perf_event_detach_bpf_prog() 2166 bpf_prog_array_delete_safe(old_array, event->prog); in perf_event_detach_bpf_prog() [all …]
|
/linux-6.1.9/mm/ |
D | memblock.c | 412 struct memblock_region *new_array, *old_array; in memblock_double_array() local 476 old_array = type->regions; in memblock_double_array() 482 kfree(old_array); in memblock_double_array() 483 else if (old_array != memblock_memory_init_regions && in memblock_double_array() 484 old_array != memblock_reserved_init_regions) in memblock_double_array() 485 memblock_free(old_array, old_alloc_size); in memblock_double_array()
|
/linux-6.1.9/net/sched/ |
D | sch_fq.c | 698 struct rb_root *old_array, u32 old_log, in fq_rehash() argument 708 oroot = &old_array[idx]; in fq_rehash()
|
/linux-6.1.9/include/linux/ |
D | bpf.h | 1544 int bpf_prog_array_copy(struct bpf_prog_array *old_array,
|