Home
last modified time | relevance | path

Searched refs:master (Results 1 – 25 of 56) sorted by relevance

123

/systemd-251/src/login/
Dlogind-device.c10 Device* device_new(Manager *m, const char *sysfs, bool master) { in device_new() argument
30 d->master = master; in device_new()
91 if (d->master || !s->devices) in device_attach()
95 if (!i->devices_next || !i->master) { in device_attach()
101 if (!had_master && d->master && s->started) { in device_attach()
Dlogind-core.c88 int manager_add_device(Manager *m, const char *sysfs, bool master, Device **ret_device) { in manager_add_device() argument
97 d->master = d->master || master; in manager_add_device()
99 d = device_new(m, sysfs, master); in manager_add_device()
272 bool master; in manager_process_seat_device() local
284 master = sd_device_has_current_tag(d, "master-of-seat") > 0; in manager_process_seat_device()
287 if (!master && !seat) in manager_process_seat_device()
294 r = manager_add_device(m, syspath, master, &device); in manager_process_seat_device()
Dlogind-device.h15 bool master; member
23 Device* device_new(Manager *m, const char *sysfs, bool master);
Dlogind.h144 int manager_add_device(Manager *m, const char *sysfs, bool master, Device **ret_device);
Dlogind-seat.c581 return !!s->devices && s->devices->master; in seat_has_master_device()
/systemd-251/src/shared/
Dptyfwd.c33 int master; member
186 if (ioctl(f->master, TIOCINQ, &q) < 0) in drained()
191 if (ioctl(f->master, TIOCOUTQ, &q) < 0) in drained()
243 k = write(f->master, f->in_buffer, f->in_buffer_full); in shovel()
266 … k = read(f->master, f->out_buffer + f->out_buffer_full, LINE_MAX - f->out_buffer_full); in shovel()
347 assert(fd == f->master); in on_master_event()
398 (void) ioctl(f->master, TIOCSWINSZ, &ws); in on_sigwinch_event()
405 int master, in pty_forward_new() argument
419 .master = -1, in pty_forward_new()
470 r = fd_nonblock(master, true); in pty_forward_new()
[all …]
Dptyfwd.h24 int pty_forward_new(sd_event *event, int master, PTYForwardFlags flags, PTYForward **f);
/systemd-251/src/network/
Dnetworkd-setlink.c650 Link *master; in link_request_to_set_bond() local
655 if (link_get_master(link, &master) < 0) in link_request_to_set_bond()
658 if (!streq_ptr(master->kind, "bond")) in link_request_to_set_bond()
671 Link *master; in link_request_to_set_bridge() local
676 if (link_get_master(link, &master) < 0) in link_request_to_set_bridge()
679 if (!streq_ptr(master->kind, "bridge")) in link_request_to_set_bridge()
696 Link *master; in link_request_to_set_bridge_vlan() local
701 if (link_get_master(link, &master) < 0) in link_request_to_set_bridge_vlan()
704 if (!streq_ptr(master->kind, "bridge")) in link_request_to_set_bridge_vlan()
906 Link *master; in link_up_dsa_slave() local
[all …]
Dnetworkd-bridge-mdb.c166 Link *master; in bridge_mdb_is_ready_to_configure() local
179 if (link_get_master(link, &master) < 0) in bridge_mdb_is_ready_to_configure()
182 if (!streq_ptr(master->kind, "bridge")) in bridge_mdb_is_ready_to_configure()
185 if (!IN_SET(master->state, LINK_STATE_CONFIGURING, LINK_STATE_CONFIGURED)) in bridge_mdb_is_ready_to_configure()
188 if (master->set_flags_messages > 0) in bridge_mdb_is_ready_to_configure()
191 if (!link_has_carrier(master)) in bridge_mdb_is_ready_to_configure()
Dnetworkd-link.c869 Link *master; in link_append_to_master() local
876 if (link_get_master(link, &master) < 0) in link_append_to_master()
879 r = set_ensure_put(&master->slaves, NULL, link); in link_append_to_master()
888 Link *master; in link_drop_from_master() local
895 if (link_get_master(link, &master) < 0) in link_drop_from_master()
898 link_unref(set_remove(master->slaves, link)); in link_drop_from_master()
1905 Link *master; in link_update_operstate() local
1907 if (link_get_master(link, &master) >= 0) in link_update_operstate()
1908 link_update_operstate(master, true); in link_update_operstate()
Dnetworkctl.c272 uint32_t master; member
583 (void) sd_netlink_message_read_u32(m, IFLA_MASTER, &info->master); in decode_link()
1749 if (info->master > 0) { in link_status_one()
1753 TABLE_IFINDEX, info->master); in link_status_one()
/systemd-251/rules.d/
D71-seat.rules.in21 # Allow efifb / uvesafb to be a master if KMS is disabled
22 SUBSYSTEM=="graphics", KERNEL=="fb[0-9]", IMPORT{cmdline}="nomodeset", TAG+="master-of-seat"
24 # Allow any PCI graphics device to be a master and synthesize a seat if KMS
27 ENV{DRIVER}=="", IMPORT{cmdline}="nomodeset", TAG+="seat", TAG+="master-of-seat"
32 ENV{ID_TAG_MASTER_OF_SEAT}=="1", TAG+="master-of-seat"
34 SUBSYSTEM=="drm", KERNEL=="card[0-9]*", TAG+="seat", TAG+="master-of-seat"
/systemd-251/src/machine/
Dmachine-dbus.c453 _cleanup_close_ int master = -1; in bus_machine_method_open_pty() local
479 master = machine_openpt(m, O_RDWR|O_NOCTTY|O_CLOEXEC, &pty_name); in bus_machine_method_open_pty()
480 if (master < 0) in bus_machine_method_open_pty()
481 return master; in bus_machine_method_open_pty()
487 r = sd_bus_message_append(reply, "hs", master, pty_name); in bus_machine_method_open_pty()
543 _cleanup_close_ int master = -1; in bus_machine_method_open_login() local
572 master = machine_openpt(m, O_RDWR|O_NOCTTY|O_CLOEXEC, &pty_name); in bus_machine_method_open_login()
573 if (master < 0) in bus_machine_method_open_login()
574 return master; in bus_machine_method_open_login()
595 r = sd_bus_message_append(reply, "hs", master, pty_name); in bus_machine_method_open_login()
[all …]
Dmachinectl.c1203 static int process_forward(sd_event *event, PTYForward **forward, int master, PTYForwardFlags flags… in process_forward() argument
1209 assert(master >= 0); in process_forward()
1224 r = pty_forward_new(event, master, flags, forward); in process_forward()
1296 int master = -1, r; in login_machine() local
1337 r = sd_bus_message_read(reply, "hs", &master, NULL); in login_machine()
1341 return process_forward(event, &forward, master, PTY_FORWARD_IGNORE_VHANGUP, machine); in login_machine()
1350 int master = -1, r; in shell_machine() local
1419 r = sd_bus_message_read(reply, "hs", &master, NULL); in shell_machine()
1423 return process_forward(event, &forward, master, 0, machine); in shell_machine()
/systemd-251/src/test/
Dtest-terminal-util.c70 _cleanup_close_ int master = -1; in TEST() local
72 assert_se((master = posix_openpt(O_RDWR|O_NOCTTY)) >= 0); in TEST()
73 assert_se(getttyname_malloc(master, &ttyname) >= 0); in TEST()
/systemd-251/src/basic/linux/
DREADME1 The files in this directory are copied from current kernel master
2 (b06ed1e7a2fa9b636f368a9e97c3c8877623f8b2) or WireGuard master
/systemd-251/src/run/
Drun.c1114 _cleanup_close_ int master = -1; in start_transient_service() local
1123 master = posix_openpt(O_RDWR|O_NOCTTY|O_CLOEXEC|O_NONBLOCK); in start_transient_service()
1124 if (master < 0) in start_transient_service()
1127 r = ptsname_malloc(master, &pty_path); in start_transient_service()
1131 if (unlockpt(master) < 0) in start_transient_service()
1154 r = sd_bus_message_read(pty_reply, "hs", &master, &s); in start_transient_service()
1158 master = fcntl(master, F_DUPFD_CLOEXEC, 3); in start_transient_service()
1159 if (master < 0) in start_transient_service()
1261 if (master >= 0) { in start_transient_service()
1269 … r = pty_forward_new(c.event, master, PTY_FORWARD_IGNORE_INITIAL_VHANGUP, &c.forward); in start_transient_service()
/systemd-251/.github/workflows/
Dcifuzz.yml37 uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
46 uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
/systemd-251/tools/
Doss-fuzz.sh89 wget -O "$hosts" https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
108 wget -O "$OUT/fuzz-json.dict" https://raw.githubusercontent.com/rc0r/afl-fuzz/master/dictionaries/j…
/systemd-251/src/basic/linux/hdlc/
Dioctl.h74 char master[IFNAMSIZ]; /* Name of master FRAD device */ member
/systemd-251/src/basic/
Dterminal-util.c1203 int master; in open_terminal_in_namespace() local
1207 master = open_terminal(name, mode|O_NOCTTY|O_CLOEXEC); in open_terminal_in_namespace()
1208 if (master < 0) in open_terminal_in_namespace()
1211 if (send_one_fd(pair[1], master, 0) < 0) in open_terminal_in_namespace()
/systemd-251/hwdb.d/
D60-seat.hwdb8 # device, and not the (parent) PCI device, is tagged with 'master-of-seat'.
/systemd-251/test/test-sysusers/
Dtest-5.input2 # Reproduce the base-passwd master.{passwd,group} from Debian
/systemd-251/.lgtm/cpp-queries/
DPotentiallyDangerousFunction.ql5 …* https://github.com/Semmle/ql/blob/master/cpp/ql/src/Security/CWE/CWE-676/PotentiallyDangerousFun…
/systemd-251/src/nspawn/
Dnspawn.c3343 _cleanup_close_ int master = -1; in inner_child() local
3347 master = openpt_allocate(O_RDWR|O_NONBLOCK, &console); in inner_child()
3348 if (master < 0) in inner_child()
3349 return log_error_errno(master, "Failed to allocate a pty: %m"); in inner_child()
3355 r = send_one_fd(master_pty_socket, master, 0); in inner_child()
4725 int *master, pid_t *pid, int *ret) { in run_container() argument
5221 *master = TAKE_FD(fd); in run_container()
5444 _cleanup_close_ int master = -1; in run() local
5851 &expose_args, &master, in run()
5866 if (master >= 0) { in run()
[all …]

123