/systemd-251/src/network/ |
D | networkd-wifi.c | 44 uint8_t cmd; in manager_genl_process_nl80211_config() local 71 r = sd_genl_message_get_command(genl, message, &cmd); in manager_genl_process_nl80211_config() 76 if (IN_SET(cmd, NL80211_CMD_NEW_WIPHY, NL80211_CMD_DEL_WIPHY)) in manager_genl_process_nl80211_config() 78 …if (!IN_SET(cmd, NL80211_CMD_SET_INTERFACE, NL80211_CMD_NEW_INTERFACE, NL80211_CMD_DEL_INTERFACE))… in manager_genl_process_nl80211_config() 80 strna(nl80211_cmd_to_string(cmd)), cmd); in manager_genl_process_nl80211_config() 87 strna(nl80211_cmd_to_string(cmd)), cmd); in manager_genl_process_nl80211_config() 94 strna(nl80211_cmd_to_string(cmd)), cmd, ifindex); in manager_genl_process_nl80211_config() 101 strna(nl80211_cmd_to_string(cmd)), cmd); in manager_genl_process_nl80211_config() 107 strna(nl80211_cmd_to_string(cmd)), cmd, ifname); in manager_genl_process_nl80211_config() 114 strna(nl80211_cmd_to_string(cmd)), cmd); in manager_genl_process_nl80211_config() [all …]
|
D | networkd-wiphy.c | 126 uint8_t cmd; in manager_genl_process_nl80211_wiphy() local 152 r = sd_genl_message_get_command(genl, message, &cmd); in manager_genl_process_nl80211_wiphy() 161 strna(nl80211_cmd_to_string(cmd)), cmd); in manager_genl_process_nl80211_wiphy() 167 switch (cmd) { in manager_genl_process_nl80211_wiphy() 201 strna(nl80211_cmd_to_string(cmd)), cmd); in manager_genl_process_nl80211_wiphy()
|
/systemd-251/src/test/ |
D | test-acl-util.c | 20 char *cmd; in TEST_RET() local 30 cmd = strjoina("ls -l ", fn); in TEST_RET() 31 assert_se(system(cmd) == 0); in TEST_RET() 33 cmd = strjoina("getfacl -p ", fn); in TEST_RET() 34 assert_se(system(cmd) == 0); in TEST_RET() 51 cmd = strjoina("ls -l ", fn); in TEST_RET() 52 assert_se(system(cmd) == 0); in TEST_RET() 54 cmd = strjoina("getfacl -p ", fn); in TEST_RET() 55 assert_se(system(cmd) == 0); in TEST_RET() 62 cmd = strjoina("ls -l ", fn); in TEST_RET() [all …]
|
D | test-tmpfiles.c | 21 …_cleanup_free_ char *cmd = NULL, *cmd2 = NULL, *ans = NULL, *ans2 = NULL, *d = NULL, *tmp = NULL, … in TEST() local 31 assert_se(asprintf(&cmd, "ls -l /proc/"PID_FMT"/fd/%d", getpid_cached(), fd) > 0); in TEST() 32 (void) system(cmd); in TEST() 33 assert_se(readlink_malloc(cmd + 6, &ans) >= 0); in TEST()
|
/systemd-251/src/udev/ |
D | udev-builtin.c | 69 const char *udev_builtin_name(UdevBuiltinCommand cmd) { in udev_builtin_name() argument 70 assert(cmd >= 0 && cmd < _UDEV_BUILTIN_MAX); in udev_builtin_name() 72 if (!builtins[cmd]) in udev_builtin_name() 75 return builtins[cmd]->name; in udev_builtin_name() 78 bool udev_builtin_run_once(UdevBuiltinCommand cmd) { in udev_builtin_run_once() argument 79 assert(cmd >= 0 && cmd < _UDEV_BUILTIN_MAX); in udev_builtin_run_once() 81 if (!builtins[cmd]) in udev_builtin_run_once() 84 return builtins[cmd]->run_once; in udev_builtin_run_once() 101 int udev_builtin_run(sd_device *dev, sd_netlink **rtnl, UdevBuiltinCommand cmd, const char *command… in udev_builtin_run() argument 106 assert(cmd >= 0 && cmd < _UDEV_BUILTIN_MAX); in udev_builtin_run() [all …]
|
D | test-udev-event.c | 12 static void test_event_spawn_core(bool with_pidfd, const char *cmd, char *result_buf, size_t buf_si… in test_event_spawn_core() argument 20 …assert_se(udev_event_spawn(event, 5 * USEC_PER_SEC, SIGKILL, false, cmd, result_buf, buf_size, NUL… in test_event_spawn_core() 27 _cleanup_free_ char *cmd = NULL; in test_event_spawn_cat() local 32 assert_se(find_executable("cat", &cmd) >= 0); in test_event_spawn_cat() 33 assert_se(strextend_with_separator(&cmd, " ", "/sys/class/net/lo/uevent")); in test_event_spawn_cat() 35 test_event_spawn_core(with_pidfd, cmd, result_buf, in test_event_spawn_cat() 49 _cleanup_free_ char *cmd = NULL; in test_event_spawn_self() local 54 assert_se(cmd = strjoin(self, " ", arg)); in test_event_spawn_self() 56 test_event_spawn_core(with_pidfd, cmd, result_buf, BUF_SIZE); in test_event_spawn_self()
|
D | udev-event.c | 41 const char *cmd; member 595 "Failed to read stdout of '%s': %m", spawn->cmd); in on_spawn_io() 602 spawn->cmd, spawn->result_size); in on_spawn_io() 619 spawn->cmd, fd == spawn->fd_stdout ? "out" : "err"); in on_spawn_io() 622 log_device_debug(spawn->device, "'%s'(%s) '%s'", spawn->cmd, in on_spawn_io() 635 "Failed to reactivate IO source of '%s'", spawn->cmd); in on_spawn_io() 644 DEVICE_TRACE_POINT(spawn_timeout, spawn->device, spawn->cmd); in on_spawn_timeout() 649 spawn->cmd, spawn->pid, in on_spawn_timeout() 661 spawn->cmd, spawn->pid, in on_spawn_timeout_warning() 676 log_device_debug(spawn->device, "Process '%s' succeeded.", spawn->cmd); in on_spawn_sigchld() [all …]
|
D | udev-builtin.h | 33 int (*cmd)(sd_device *dev, sd_netlink **rtnl, int argc, char *argv[], bool test); member 75 const char *udev_builtin_name(UdevBuiltinCommand cmd); 76 bool udev_builtin_run_once(UdevBuiltinCommand cmd); 77 int udev_builtin_run(sd_device *dev, sd_netlink **rtnl, UdevBuiltinCommand cmd, const char *command…
|
D | udevadm-test-builtin.c | 77 UdevBuiltinCommand cmd; in builtin_main() local 88 cmd = udev_builtin_lookup(arg_command); in builtin_main() 89 if (cmd < 0) { in builtin_main() 101 r = udev_builtin_run(dev, &rtnl, cmd, arg_command, true); in builtin_main()
|
D | udevadm-test.c | 91 const char *cmd, *key, *value; in test_main() local 136 ORDERED_HASHMAP_FOREACH_KEY(val, cmd, event->run_list) { in test_main() 140 … (void) udev_event_apply_format(event, cmd, program, sizeof(program), false, &truncated); in test_main() 142 … log_warning("The command '%s' is truncated while substituting into '%s'.", program, cmd); in test_main()
|
D | udev-rules.c | 778 UdevBuiltinCommand cmd; in parse_token() local 780 cmd = udev_builtin_lookup(value); in parse_token() 781 if (cmd >= 0) { in parse_token() 783 … r = rule_line_add_token(rule_line, TK_M_IMPORT_BUILTIN, op, value, UDEV_BUILTIN_CMD_TO_PTR(cmd)); in parse_token() 787 UdevBuiltinCommand cmd; in parse_token() local 789 cmd = udev_builtin_lookup(value); in parse_token() 790 if (cmd < 0) in parse_token() 793 … r = rule_line_add_token(rule_line, TK_M_IMPORT_BUILTIN, op, value, UDEV_BUILTIN_CMD_TO_PTR(cmd)); in parse_token() 946 UdevBuiltinCommand cmd; in parse_token() local 948 cmd = udev_builtin_lookup(value); in parse_token() [all …]
|
/systemd-251/src/shared/linux/ |
D | ethtool.h | 110 __u32 cmd; member 192 __u32 cmd; member 218 __u32 cmd; member 226 __u32 cmd; member 259 __u32 cmd; member 325 __u32 cmd; member 350 __u32 cmd; member 376 __u32 cmd; member 399 __u32 cmd; member 479 __u32 cmd; member [all …]
|
/systemd-251/src/udev/cdrom_id/ |
D | cdrom_id.c | 170 static void scsi_cmd_init(struct scsi_cmd *cmd) { in scsi_cmd_init() argument 171 memzero(cmd, sizeof(struct scsi_cmd)); in scsi_cmd_init() 172 cmd->cgc.quiet = 1; in scsi_cmd_init() 173 cmd->cgc.sense = &cmd->_sense.s; in scsi_cmd_init() 174 cmd->sg_io.interface_id = 'S'; in scsi_cmd_init() 175 cmd->sg_io.mx_sb_len = sizeof(cmd->_sense); in scsi_cmd_init() 176 cmd->sg_io.cmdp = cmd->cgc.cmd; in scsi_cmd_init() 177 cmd->sg_io.sbp = cmd->_sense.u; in scsi_cmd_init() 178 cmd->sg_io.flags = SG_FLAG_LUN_INHIBIT | SG_FLAG_DIRECT_IO; in scsi_cmd_init() 181 static void scsi_cmd_set(struct scsi_cmd *cmd, size_t i, unsigned char arg) { in scsi_cmd_set() argument [all …]
|
/systemd-251/src/shutdown/ |
D | shutdown.c | 337 int cmd, r, umount_log_level = LOG_INFO; in main() local 366 cmd = RB_AUTOBOOT; in main() 368 cmd = RB_POWER_OFF; in main() 370 cmd = RB_HALT_SYSTEM; in main() 372 cmd = LINUX_REBOOT_CMD_KEXEC; in main() 374 cmd = 0; /* ignored, just checking that arg_verb is valid */ in main() 584 cmd = RB_POWER_OFF; /* We cannot exit() on the host, fallback on another method. */ in main() 587 switch (cmd) { in main() 606 (void) reboot(cmd); in main() 613 cmd = RB_AUTOBOOT; in main() [all …]
|
/systemd-251/src/shared/ |
D | quota-util.h | 14 static inline int QCMD_FIXED(uint32_t cmd, uint32_t type) { in QCMD_FIXED() argument 15 return (int) QCMD(cmd, type); in QCMD_FIXED() 18 int quotactl_devnum(int cmd, dev_t devnum, int id, void *addr); 19 int quotactl_path(int cmd, const char *path, int id, void *addr);
|
D | ethtool-util.c | 271 .cmd = ETHTOOL_GDRVINFO, in ethtool_get_driver() 312 .cmd = ETHTOOL_GSET, in ethtool_get_link_info() 357 .addr.cmd = ETHTOOL_GPERMADDR, in ethtool_get_permanent_hw_addr() 416 .cmd = ETHTOOL_GWOL, in ethtool_set_wol() 474 ecmd.cmd = ETHTOOL_SWOL; in ethtool_set_wol() 483 .cmd = ETHTOOL_GRINGPARAM, in ethtool_set_nic_buffer_size() 525 ecmd.cmd = ETHTOOL_SRINGPARAM; in ethtool_set_nic_buffer_size() 535 .info.cmd = ETHTOOL_GSSET_INFO, in get_stringset() 568 strings->cmd = ETHTOOL_GSTRINGS; in get_stringset() 595 gfeatures->cmd = ETHTOOL_GFEATURES; in get_features() [all …]
|
D | quota-util.c | 11 int quotactl_devnum(int cmd, dev_t devnum, int id, void *addr) { in quotactl_devnum() argument 22 if (quotactl(cmd, devnode, id, addr) < 0) in quotactl_devnum() 28 int quotactl_path(int cmd, const char *path, int id, void *addr) { in quotactl_path() argument 41 return quotactl_devnum(cmd, devno, id, addr); in quotactl_path()
|
/systemd-251/src/import/ |
D | importd.c | 372 const char *cmd[] = { in transfer_start() local 415 cmd[k++] = SYSTEMD_IMPORT_PATH; in transfer_start() 419 cmd[k++] = SYSTEMD_IMPORT_FS_PATH; in transfer_start() 424 cmd[k++] = SYSTEMD_EXPORT_PATH; in transfer_start() 429 cmd[k++] = SYSTEMD_PULL_PATH; in transfer_start() 441 cmd[k++] = "tar"; in transfer_start() 447 cmd[k++] = "raw"; in transfer_start() 451 cmd[k++] = "run"; in transfer_start() 459 cmd[k++] = "--verify"; in transfer_start() 460 cmd[k++] = import_verify_to_string(t->verify); in transfer_start() [all …]
|
D | pull-common.c | 423 const char *cmd[] = { in verify_gpg() local 438 size_t k = ELEMENTSOF(cmd) - 6; in verify_gpg() 452 cmd[k++] = strjoina("--homedir=", gpg_home); in verify_gpg() 457 cmd[k++] = "--keyring=" USER_KEYRING_PATH; in verify_gpg() 459 cmd[k++] = "--keyring=" VENDOR_KEYRING_PATH; in verify_gpg() 461 cmd[k++] = "--verify"; in verify_gpg() 463 cmd[k++] = sig_file_path; in verify_gpg() 464 cmd[k++] = "-"; in verify_gpg() 465 cmd[k++] = NULL; in verify_gpg() 468 execvp("gpg2", (char * const *) cmd); in verify_gpg() [all …]
|
/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-genl.c | 101 uint8_t cmd; in genl_family_new() local 125 r = sd_genl_message_get_command(nl, message, &cmd); in genl_family_new() 129 if (cmd != CTRL_CMD_NEWFAMILY) in genl_family_new() 220 uint8_t cmd, in genl_message_new() argument 242 .cmd = cmd, in genl_message_new() 368 int sd_genl_message_new(sd_netlink *nl, const char *family_name, uint8_t cmd, sd_netlink_message **… in sd_genl_message_new() argument 381 return genl_message_new(nl, family, cmd, ret); in sd_genl_message_new() 432 *ret = h->cmd; in sd_genl_message_get_command()
|
/systemd-251/shell-completion/zsh/ |
D | _timedatectl | 46 cmd="${${_timedatectl_cmds[(r)$words[1]:*]%%:*}}" 47 if (( $#cmd )); then 48 if (( $+functions[_timedatectl_$cmd] )); then 49 _timedatectl_$cmd
|
D | _hostnamectl | 65 cmd="${${_hostnamectl_cmds[(r)$words[1]:*]%%:*}}" 66 if (( $#cmd )); then 67 if [[ $cmd == status ]]; then 70 _hostnamectl_$cmd
|
D | _oomctl | 15 cmd="${${_oomctl_cmds[(r)$words[1]:*]%%:*}}" 16 if (( $+functions[_oomctl_$cmd] )); then 17 _oomctl_$cmd
|
/systemd-251/src/vconsole/ |
D | vconsole-setup.c | 141 _cleanup_free_ char *cmd = NULL; in keyboard_load_and_wait() local 143 cmd = strv_join((char**) args, " "); in keyboard_load_and_wait() 144 log_debug("Executing \"%s\"...", strnull(cmd)); in keyboard_load_and_wait() 184 _cleanup_free_ char *cmd = NULL; in font_load_and_wait() local 186 cmd = strv_join((char**) args, " "); in font_load_and_wait() 187 log_debug("Executing \"%s\"...", strnull(cmd)); in font_load_and_wait()
|
/systemd-251/src/basic/ |
D | raw-reboot.h | 12 static inline int raw_reboot(int cmd, const void *arg) { in raw_reboot() argument 13 return (int) syscall(SYS_reboot, LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, cmd, arg); in raw_reboot()
|