/systemd/src/machine/ |
H A D | machine.c | 106 if (m->leader > 0) 107 (void) hashmap_remove_value(m->manager->machine_leaders, PID_TO_PTR(m->leader), m); 187 if (m->leader != 0) 188 fprintf(f, "LEADER="PID_FMT"\n", m->leader); 261 _cleanup_free_ char *realtime = NULL, *monotonic = NULL, *id = NULL, *leader = NULL, *class = NULL, *netif = NULL; local 275 "LEADER", &leader, 291 if (leader) 292 parse_pid(leader, &m->leader); 373 r = manager_start_scope(m->manager, scope, m->leader, SPECIAL_MACHINE_SLIC [all...] |
H A D | machine.h | 78 pid_t leader; member in struct:Machine
|
H A D | machined-dbus.c | 274 uint32_t leader; local 301 r = sd_bus_message_read(message, "ssus", &service, &class, &leader, &root_directory); 328 if (leader == 1) 329 return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Invalid leader PID"); 334 if (leader == 0) { 343 r = sd_bus_creds_get_pid(creds, (pid_t*) &leader); 355 m->leader = leader; 444 r = cg_pid_get_unit(m->leader, &m->unit); 446 r = sd_bus_error_set_errnof(error, r, "Failed to determine unit of process "PID_FMT" : %s", m->leader, strerro [all...] |
H A D | machine-dbus.c | 253 p = procfs_file_alloca(m->leader, "ns/net"); 261 r = namespace_open(m->leader, NULL, NULL, &netns_fd, NULL, NULL); 401 r = namespace_open(m->leader, NULL, &mntns_fd, NULL, NULL, &root_fd); 544 if (asprintf(&address, "x-machine-kernel:pid=%1$" PID_PRI ";x-machine-unix:pid=%1$" PID_PRI, m->leader) < 0) 1014 q = procfs_file_alloca(m->leader, "ns/mnt"); 1017 r = log_error_errno(errno, "Failed to open mount namespace of leader: %m"); 1022 r = log_error_errno(errno, "Failed to join namespace of leader: %m"); 1208 q = procfs_file_alloca(m->leader, "ns/mnt"); 1211 r = log_error_errno(errno, "Failed to open mount namespace of leader: %m"); 1216 r = log_error_errno(errno, "Failed to join namespace of leader [all...] |
H A D | machined.c | 120 t->leader = 1;
|
H A D | machinectl.c | 342 static int show_unit_cgroup(sd_bus *bus, const char *unit, pid_t leader) { argument 378 if (cg_is_empty_recursive(SYSTEMD_CGROUP_CONTROLLER, cgroup) != 0 && leader <= 0) 387 show_cgroup_and_extra(SYSTEMD_CGROUP_CONTROLLER, cgroup, "\t\t ", c, false, &leader, leader > 0, get_output_flags()); 501 pid_t leader; member in struct:MachineStatusInfo 542 if (i->leader > 0) { 545 printf("\t Leader: %u", (unsigned) i->leader); 547 get_process_comm(i->leader, &t); 598 show_unit_cgroup(bus, i->unit, i->leader); 646 { "Leader", "u", NULL, offsetof(MachineStatusInfo, leader) }, [all...] |
/systemd/src/login/ |
H A D | logind-session.c | 275 if (s->leader > 0) 276 fprintf(f, "LEADER="PID_FMT"\n", s->leader); 318 *leader = NULL, local 345 "LEADER", &leader, 410 if (leader) { 411 k = parse_pid(leader, &s->leader); 413 audit_session_from_pid(s->leader, &s->audit_id); 528 s->leader, 578 "LEADER="PID_FMT, s->leader, [all...] |
H A D | loginctl.c | 232 static int show_unit_cgroup(sd_bus *bus, const char *interface, const char *unit, pid_t leader) { argument 267 if (cg_is_empty_recursive(SYSTEMD_CGROUP_CONTROLLER, cgroup) != 0 && leader <= 0) 276 show_cgroup_and_extra(SYSTEMD_CGROUP_CONTROLLER, cgroup, "\t\t ", c, false, &leader, leader > 0, get_output_flags()); 293 pid_t leader; member in struct:SessionStatusInfo 434 { "Leader", "u", NULL, offsetof(SessionStatusInfo, leader) }, 472 if (i.leader > 0) { 475 printf("\t Leader: %u", (unsigned) i.leader); 477 get_process_comm(i.leader, &t); 535 show_unit_cgroup(bus, "org.freedesktop.systemd1.Scope", i.scope, i.leader); [all...] |
H A D | logind-session.h | 97 pid_t leader; member in struct:Session
|
H A D | logind-dbus.c | 583 pid_t leader; local 597 r = sd_bus_message_read(message, "uusssssussbss", &uid, &leader, &service, &type, &class, &desktop, &cseat, &vtnr, &tty, &display, &remote, &remote_user, &remote_host); 603 if (leader < 0 || leader == 1) 604 return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Invalid leader PID"); 695 if (leader == 0) { 702 r = sd_bus_creds_get_pid(creds, (pid_t*) &leader); 707 r = manager_get_session_by_pid(m, leader, NULL); 728 audit_session_from_pid(leader, &audit_id); 767 session->leader [all...] |
H A D | logind-session-dbus.c | 480 SD_BUS_PROPERTY("Leader", "u", bus_property_get_pid, offsetof(Session, leader), SD_BUS_VTABLE_PROPERTY_CONST),
|
/systemd/src/basic/ |
H A D | util.c | 618 pid_t leader; local 639 r = parse_pid(s, &leader); 642 if (leader <= 1) 645 *pid = leader;
|