Lines Matching refs:fds

93 int unit_serialize(Unit *u, FILE *f, FDSet *fds, bool switching_root) {  in unit_serialize()  argument
98 assert(fds); in unit_serialize()
115 r = UNIT_VTABLE(u)->serialize(u, f, fds); in unit_serialize()
170 (void) bpf_serialize_socket_bind(u, f, fds); in unit_serialize()
172 …(void) bpf_program_serialize_attachment(f, fds, "ip-bpf-ingress-installed", u->ip_bpf_ingress_inst… in unit_serialize()
173 …(void) bpf_program_serialize_attachment(f, fds, "ip-bpf-egress-installed", u->ip_bpf_egress_instal… in unit_serialize()
174 …(void) bpf_program_serialize_attachment(f, fds, "bpf-device-control-installed", u->bpf_device_cont… in unit_serialize()
175 …(void) bpf_program_serialize_attachment_set(f, fds, "ip-bpf-custom-ingress-installed", u->ip_bpf_c… in unit_serialize()
176 …(void) bpf_program_serialize_attachment_set(f, fds, "ip-bpf-custom-egress-installed", u->ip_bpf_cu… in unit_serialize()
178 (void) serialize_restrict_network_interfaces(u, f, fds); in unit_serialize()
267 int unit_deserialize(Unit *u, FILE *f, FDSet *fds) { in unit_deserialize() argument
272 assert(fds); in unit_deserialize()
394 if (safe_atoi(v, &fd) < 0 || fd < 0 || !fdset_contains(fds, fd)) in unit_deserialize()
397 if (fdset_remove(fds, fd) < 0) { in unit_deserialize()
407 … (void) bpf_program_deserialize_attachment(v, fds, &u->ip_bpf_ingress_installed); in unit_deserialize()
410 … (void) bpf_program_deserialize_attachment(v, fds, &u->ip_bpf_egress_installed); in unit_deserialize()
413 … (void) bpf_program_deserialize_attachment(v, fds, &u->bpf_device_control_installed); in unit_deserialize()
417 … (void) bpf_program_deserialize_attachment_set(v, fds, &u->ip_bpf_custom_ingress_installed); in unit_deserialize()
420 … (void) bpf_program_deserialize_attachment_set(v, fds, &u->ip_bpf_custom_egress_installed); in unit_deserialize()
426 if (safe_atoi(v, &fd) < 0 || fd < 0 || !fdset_contains(fds, fd)) { in unit_deserialize()
430 if (fdset_remove(fds, fd) < 0) { in unit_deserialize()
525 r = exec_runtime_deserialize_compat(u, l, v, fds); in unit_deserialize()
534 r = UNIT_VTABLE(u)->deserialize_item(u, l, v, fds); in unit_deserialize()