Lines Matching refs:obj

15 static struct restrict_ifaces_bpf *restrict_ifaces_bpf_free(struct restrict_ifaces_bpf *obj) {  in restrict_ifaces_bpf_free()  argument
16 restrict_ifaces_bpf__destroy(obj); in restrict_ifaces_bpf_free()
28 _cleanup_(restrict_ifaces_bpf_freep) struct restrict_ifaces_bpf *obj = NULL; in prepare_restrict_ifaces_bpf() local
35 obj = restrict_ifaces_bpf__open(); in prepare_restrict_ifaces_bpf()
36 if (!obj) in prepare_restrict_ifaces_bpf()
39 … r = sym_bpf_map__resize(obj->maps.sd_restrictif, MAX(set_size(restrict_network_interfaces), 1u)); in prepare_restrict_ifaces_bpf()
43 sym_bpf_map__name(obj->maps.sd_restrictif)); in prepare_restrict_ifaces_bpf()
45 obj->rodata->is_allow_list = is_allow_list; in prepare_restrict_ifaces_bpf()
47 r = restrict_ifaces_bpf__load(obj); in prepare_restrict_ifaces_bpf()
51 map_fd = sym_bpf_map__fd(obj->maps.sd_restrictif); in prepare_restrict_ifaces_bpf()
66 sym_bpf_map__name(obj->maps.sd_restrictif)); in prepare_restrict_ifaces_bpf()
69 *ret_object = TAKE_PTR(obj); in prepare_restrict_ifaces_bpf()
74 _cleanup_(restrict_ifaces_bpf_freep) struct restrict_ifaces_bpf *obj = NULL; in restrict_network_interfaces_supported() local
97 r = prepare_restrict_ifaces_bpf(NULL, true, NULL, &obj); in restrict_network_interfaces_supported()
103 return supported = bpf_can_link_program(obj->progs.sd_restrictif_i); in restrict_network_interfaces_supported()
108 _cleanup_(restrict_ifaces_bpf_freep) struct restrict_ifaces_bpf *obj = NULL; in restrict_network_interfaces_install_impl() local
128 &obj); in restrict_network_interfaces_install_impl()
136 ingress_link = sym_bpf_program__attach_cgroup(obj->progs.sd_restrictif_i, cgroup_fd); in restrict_network_interfaces_install_impl()
141 egress_link = sym_bpf_program__attach_cgroup(obj->progs.sd_restrictif_e, cgroup_fd); in restrict_network_interfaces_install_impl()