Lines Matching refs:fds
85 FDSet *fds, in manager_serialize() argument
94 assert(fds); in manager_serialize()
141 r = serialize_fd(f, fds, "notify-fd", m->notify_fd); in manager_serialize()
149 r = serialize_fd(f, fds, "cgroups-agent-fd", m->cgroups_agent_fd); in manager_serialize()
157 copy0 = fdset_put_dup(fds, m->user_lookup_fds[0]); in manager_serialize()
161 copy1 = fdset_put_dup(fds, m->user_lookup_fds[1]); in manager_serialize()
170 r = dynamic_user_serialize(m, f, fds); in manager_serialize()
177 r = exec_runtime_serialize(m, f, fds); in manager_serialize()
187 r = unit_serialize(u, f, fds, switching_root); in manager_serialize()
196 r = bus_fdset_add_all(m, fds); in manager_serialize()
203 static int manager_deserialize_one_unit(Manager *m, const char *name, FILE *f, FDSet *fds) { in manager_deserialize_one_unit() argument
214 r = unit_deserialize(u, f, fds); in manager_deserialize_one_unit()
224 static int manager_deserialize_units(Manager *m, FILE *f, FDSet *fds) { in manager_deserialize_units() argument
239 r = manager_deserialize_one_unit(m, unit_name, f, fds); in manager_deserialize_units()
295 int manager_deserialize(Manager *m, FILE *f, FDSet *fds) { in manager_deserialize() argument
302 if (fdset_isempty(fds)) in manager_deserialize()
307 FDSET_FOREACH(fd, fds) { in manager_deserialize()
481 if (safe_atoi(val, &fd) < 0 || fd < 0 || !fdset_contains(fds, fd)) in manager_deserialize()
486 m->notify_fd = fdset_remove(fds, fd); in manager_deserialize()
497 if (safe_atoi(val, &fd) < 0 || fd < 0 || !fdset_contains(fds, fd)) in manager_deserialize()
502 m->cgroups_agent_fd = fdset_remove(fds, fd); in manager_deserialize()
508 …!= 2 || fd0 < 0 || fd1 < 0 || fd0 == fd1 || !fdset_contains(fds, fd0) || !fdset_contains(fds, fd1)) in manager_deserialize()
513 m->user_lookup_fds[0] = fdset_remove(fds, fd0); in manager_deserialize()
514 m->user_lookup_fds[1] = fdset_remove(fds, fd1); in manager_deserialize()
518 dynamic_user_deserialize_one(m, val, fds); in manager_deserialize()
524 (void) exec_runtime_deserialize_one(m, val, fds); in manager_deserialize()
550 return manager_deserialize_units(m, f, fds); in manager_deserialize()