Lines Matching refs:seat

209         Seat *seat;  in manager_get_seat_from_creds()  local
223 seat = session->seat; in manager_get_seat_from_creds()
224 if (!seat) in manager_get_seat_from_creds()
227 seat = hashmap_get(m->seats, name); in manager_get_seat_from_creds()
228 if (!seat) in manager_get_seat_from_creds()
232 *ret = seat; in manager_get_seat_from_creds()
519 Seat *seat; in method_get_seat() local
529 r = manager_get_seat_from_creds(m, message, name, error, &seat); in method_get_seat()
533 p = seat_bus_path(seat); in method_get_seat()
568 session->seat ? session->seat->id : "", in method_list_sessions()
623 Seat *seat; in method_list_seats() local
637 HASHMAP_FOREACH(seat, m->seats) { in method_list_seats()
640 p = seat_bus_path(seat); in method_list_seats()
644 r = sd_bus_message_append(reply, "(so)", seat->id, p); in method_list_seats()
700 Seat *seat = NULL; in method_create_session() local
753 seat = NULL; in method_create_session()
755 seat = hashmap_get(m->seats, cseat); in method_create_session()
756 if (!seat) in method_create_session()
764 if (!seat) in method_create_session()
765 seat = m->seat0; in method_create_session()
766 else if (seat != m->seat0) in method_create_session()
768 … "TTY %s is virtual console but seat %s is not seat0", tty, seat->id); in method_create_session()
783 if (!seat) in method_create_session()
784 seat = m->seat0; in method_create_session()
785 else if (seat != m->seat0) in method_create_session()
794 if (seat) { in method_create_session()
795 if (seat_has_vts(seat)) { in method_create_session()
966 if (seat) { in method_create_session()
967 r = seat_attach_session(seat, session); in method_create_session()
1051 Seat *seat; in method_activate_session_on_seat() local
1067 r = manager_get_seat_from_creds(m, message, seat_name, error, &seat); in method_activate_session_on_seat()
1071 if (session->seat != seat) in method_activate_session_on_seat()
1219 Seat *seat; in method_terminate_seat() local
1229 r = manager_get_seat_from_creds(m, message, name, error, &seat); in method_terminate_seat()
1233 return bus_seat_method_terminate(message, seat, error); in method_terminate_seat()
1354 static int attach_device(Manager *m, const char *seat, const char *sysfs) { in attach_device() argument
1361 assert(seat); in attach_device()
1377 …intf(&rule, "TAG==\"seat\", ENV{ID_FOR_SEAT}==\"%s\", ENV{ID_SEAT}=\"%s\"", id_for_seat, seat) < 0) in attach_device()
1416 const char *sysfs, *seat; in method_attach_device() local
1423 r = sd_bus_message_read(message, "ssb", &seat, &sysfs, &interactive); in method_attach_device()
1432 if (SEAT_IS_SELF(seat) || SEAT_IS_AUTO(seat)) { in method_attach_device()
1435 r = manager_get_seat_from_creds(m, message, seat, error, &found); in method_attach_device()
1439 seat = found->id; in method_attach_device()
1441 …} else if (!seat_name_is_valid(seat)) /* Note that a seat does not have to exist yet for this oper… in method_attach_device()
1442 … return sd_bus_error_setf(error, SD_BUS_ERROR_INVALID_ARGS, "Seat name %s is not valid", seat); in method_attach_device()
1458 r = attach_device(m, seat, sysfs); in method_attach_device()