/systemd-251/src/test/ |
D | test-sizeof.c | 24 #define info(t) \ macro 49 info(char*); in main() 51 info(char); in main() 52 info(signed char); in main() 53 info(unsigned char); in main() 54 info(short unsigned); in main() 55 info(unsigned); in main() 56 info(unsigned long); in main() 57 info(unsigned long long); in main() 58 info(__syscall_ulong_t); in main() [all …]
|
/systemd-251/src/udev/ |
D | udev-netlink.c | 9 void link_info_clear(LinkInfo *info) { in link_info_clear() argument 10 if (!info) in link_info_clear() 13 info->ifname = mfree(info->ifname); in link_info_clear() 14 info->ifalias = mfree(info->ifalias); in link_info_clear() 15 info->phys_port_id = mfree(info->phys_port_id); in link_info_clear() 16 info->phys_switch_id = mfree(info->phys_switch_id); in link_info_clear() 17 info->phys_port_name = mfree(info->phys_port_name); in link_info_clear() 22 _cleanup_(link_info_clear) LinkInfo info = LINK_INFO_NULL; in link_info_get() 52 r = sd_rtnl_message_link_get_ifindex(reply, &info.ifindex); in link_info_get() 55 if (info.ifindex != ifindex) in link_info_get() [all …]
|
D | test-udev-netlink.c | 12 _cleanup_(link_info_clear) LinkInfo info = LINK_INFO_NULL; in test_link_info_one() 19 assert_se(link_info_get(&rtnl, ifindex, &info) >= 0); in test_link_info_one() 24 log_debug("iftype: %"PRIu16" (%s)", info.iftype, strna(arphrd_to_name(info.iftype))); in test_link_info_one() 27 assert_se(u == info.iftype); in test_link_info_one() 30 assert_se(u == info.iftype); in test_link_info_one() 33 log_debug("hardware address length: %zu", info.hw_addr.length); in test_link_info_one() 36 assert_se(u == info.hw_addr.length); in test_link_info_one() 39 assert_se(u == info.hw_addr.length); in test_link_info_one() 42 log_debug("hardware address: %s", HW_ADDR_TO_STR(&info.hw_addr)); in test_link_info_one() 44 assert_se(streq(s, HW_ADDR_TO_STR(&info.hw_addr))); in test_link_info_one() [all …]
|
D | udev-builtin-net_id.c | 167 static int dev_pci_onboard(sd_device *dev, const LinkInfo *info, NetNames *names) { in dev_pci_onboard() argument 175 assert(info); in dev_pci_onboard() 211 if (!isempty(info->phys_port_name)) in dev_pci_onboard() 213 l = strpcpyf(&s, l, "n%s", info->phys_port_name); in dev_pci_onboard() 219 idx, strempty(info->phys_port_name), dev_port, in dev_pci_onboard() 325 static int dev_pci_slot(sd_device *dev, const LinkInfo *info, NetNames *names) { in dev_pci_slot() argument 338 assert(info); in dev_pci_slot() 370 info->iftype == ARPHRD_INFINIBAND && in dev_pci_slot() 388 if (!isempty(info->phys_port_name)) in dev_pci_slot() 390 l = strpcpyf(&s, l, "n%s", info->phys_port_name); in dev_pci_slot() [all …]
|
/systemd-251/src/network/ |
D | networkctl.c | 377 static int decode_netdev(sd_netlink_message *m, LinkInfo *info) { in decode_netdev() argument 381 assert(info); in decode_netdev() 387 r = sd_netlink_message_read_string_strdup(m, IFLA_INFO_KIND, &info->netdev_kind); in decode_netdev() 397 if (streq(info->netdev_kind, "bridge")) { in decode_netdev() 398 (void) sd_netlink_message_read_u32(m, IFLA_BR_FORWARD_DELAY, &info->forward_delay); in decode_netdev() 399 (void) sd_netlink_message_read_u32(m, IFLA_BR_HELLO_TIME, &info->hello_time); in decode_netdev() 400 (void) sd_netlink_message_read_u32(m, IFLA_BR_MAX_AGE, &info->max_age); in decode_netdev() 401 (void) sd_netlink_message_read_u32(m, IFLA_BR_AGEING_TIME, &info->ageing_time); in decode_netdev() 402 (void) sd_netlink_message_read_u32(m, IFLA_BR_STP_STATE, &info->stp_state); in decode_netdev() 403 (void) sd_netlink_message_read_u32(m, IFLA_BRPORT_COST, &info->cost); in decode_netdev() [all …]
|
/systemd-251/src/analyze/ |
D | analyze-security.c | 124 const SecurityInfo *info, 134 SecurityInfo *info = new(SecurityInfo, 1); in security_info_new() local 135 if (!info) in security_info_new() 138 *info = (SecurityInfo) { in security_info_new() 145 return info; in security_info_new() 197 const SecurityInfo *info, in assess_bool() argument 216 const SecurityInfo *info, in assess_user() argument 227 if (streq_ptr(info->user, NOBODY_USER_NAME)) { in assess_user() 230 } else if (info->dynamic_user && !STR_IN_SET(info->user, "0", "root")) { in assess_user() 233 } else if (info->user && !STR_IN_SET(info->user, "0", "root", "")) { in assess_user() [all …]
|
/systemd-251/src/shared/ |
D | install.c | 778 const UnitFileInstallInfo *info, in find_symlinks_in_directory() argument 819 found_dest = streq(basename(dest), info->name); in find_symlinks_in_directory() 822 assert(unit_name_is_valid(info->name, UNIT_NAME_ANY)); in find_symlinks_in_directory() 833 found_path = streq(de->d_name, info->name); in find_symlinks_in_directory() 842 found_dest = streq(template, info->name); in find_symlinks_in_directory() 850 t = path_make_absolute(info->name, config_path); in find_symlinks_in_directory() 865 q = is_symlink_with_known_name(info, de->d_name); in find_symlinks_in_directory() 945 const UnitFileInstallInfo *info, in find_symlinks_in_scope() argument 955 assert(info); in find_symlinks_in_scope() 964 … r = find_symlinks(lp->root_dir, info, match_name, ignore_same_name, *p, &same_name_link); in find_symlinks_in_scope() [all …]
|
D | loop-util.c | 44 struct loop_info64 info; in loop_is_bound() local 48 if (ioctl(fd, LOOP_GET_STATUS64, &info) < 0) { in loop_is_bound() 226 if (c->info.lo_sizelimit != 0) { in loop_configure() 237 if (z != c->info.lo_sizelimit) { in loop_configure() 243 if (FLAGS_SET(c->info.lo_flags, LO_FLAGS_PARTSCAN)) { in loop_configure() 301 info_copy = c->info; in loop_configure() 329 if (c->info.lo_offset != 0 || c->info.lo_sizelimit != 0) in loop_configure() 334 if (FLAGS_SET(c->info.lo_flags, LO_FLAGS_DIRECT_IO)) { in loop_configure() 417 if (ioctl(fd, LOOP_GET_STATUS64, &config.info) >= 0) { in loop_device_make_internal() 422 VALGRIND_MAKE_MEM_DEFINED(&config.info, sizeof(config.info)); in loop_device_make_internal() [all …]
|
D | bpf-program.c | 67 static int bpf_program_get_info_by_fd(int prog_fd, struct bpf_prog_info *info, uint32_t info_len) { in bpf_program_get_info_by_fd() argument 75 attr.info.bpf_fd = prog_fd; in bpf_program_get_info_by_fd() 76 attr.info.info_len = info_len; in bpf_program_get_info_by_fd() 77 attr.info.info = PTR_TO_UINT64(info); in bpf_program_get_info_by_fd() 112 struct bpf_prog_info info = {}; in bpf_program_new_from_bpffs_path() local 131 r = bpf_program_get_info_by_fd(p->kernel_fd, &info, sizeof(info)); in bpf_program_new_from_bpffs_path() 135 p->prog_type = info.type; in bpf_program_new_from_bpffs_path() 349 struct bpf_prog_info info = {}; in bpf_program_get_id_by_fd() local 354 r = bpf_program_get_info_by_fd(prog_fd, &info, sizeof(info)); in bpf_program_get_id_by_fd() 358 *ret_id = info.id; in bpf_program_get_id_by_fd()
|
D | install-printf.c | 102 const UnitFileInstallInfo *info, in install_name_printf() argument 120 assert(info); in install_name_printf() 124 return specifier_printf(format, UNIT_NAME_MAX, table, info->root, info, ret); in install_name_printf()
|
/systemd-251/test/ |
D | test-shutdown.py | 16 logger.info("spawning test") 27 logger.info("waiting for login prompt") 30 logger.info("log in and start screen") 44 logger.info("window 1 at line %s", pty) 46 logger.info("schedule reboot") 50 logger.info("reboot scheduled for %s", date) 54 logger.info("verify broadcast message") 58 logger.info("check show output") 62 logger.info("cancel shutdown") 68 logger.info("call for reboot") [all …]
|
/systemd-251/test/units/ |
D | testsuite-17.04.sh | 10 udevadm info /dev/null | grep -E 'E: (TAGS|CURRENT_TAGS)=.*:(added|changed):' && exit 1 23 udevadm info /dev/null | grep -q 'E: TAGS=.*:added:.*' 24 udevadm info /dev/null | grep -q 'E: CURRENT_TAGS=.*:added:.*' 25 udevadm info /dev/null | grep -q 'E: TAGS=.*:changed:.*' && { echo 'unexpected TAGS='; exit 1; } 26 udevadm info /dev/null | grep -q 'E: CURRENT_TAGS=.*:changed:.*' && { echo 'unexpected CURRENT_TAGS… 32 udevadm info /dev/null | grep -q 'E: TAGS=.*:added:.*' 33 udevadm info /dev/null | grep -q 'E: CURRENT_TAGS=.*:added:.*' && { echo 'unexpected CURRENT_TAGS='… 34 udevadm info /dev/null | grep -q 'E: TAGS=.*:changed:.*' 35 udevadm info /dev/null | grep -q 'E: CURRENT_TAGS=.*:changed:.*' 41 udevadm info /dev/null | grep -q 'E: TAGS=.*:added:.*' [all …]
|
D | testsuite-17.01.sh | 14 udevadm info /dev/sda | grep -q -v SYSTEMD_WANTS=foobar.service 15 udevadm info /dev/sda | grep -q -v SYSTEMD_WANTS=waldo.service 32 udevadm info /dev/sda | grep -q SYSTEMD_WANTS=foobar.service 33 udevadm info /dev/sda | grep -q -v SYSTEMD_WANTS=waldo.service 50 udevadm info /dev/sda | grep -q -v SYSTEMD_WANTS=foobar.service 51 udevadm info /dev/sda | grep -q SYSTEMD_WANTS=waldo.service 66 udevadm info /dev/sda | grep -q -v SYSTEMD_WANTS=foobar.service 67 udevadm info /dev/sda | grep -q -v SYSTEMD_WANTS=waldo.service
|
D | testsuite-17.02.sh | 23 udevadm info /sys/devices/virtual/net/lo 29 udevadm info /sys/devices/virtual/net/lo 35 udevadm info /sys/devices/virtual/net/lo 46 udevadm info --wait-for-initialization=10s /sys/devices/virtual/net/hoge 52 udevadm info --wait-for-initialization=10s /sys/devices/virtual/net/foobar
|
D | testsuite-17.06.sh | 51 MAJOR=$(udevadm info /dev/sda | grep -e '^E: MAJOR=' | sed -e 's/^E: MAJOR=//') 52 MINOR=$(udevadm info /dev/sda | grep -e '^E: MINOR=' | sed -e 's/^E: MINOR=//') 61 MAJOR=$(udevadm info /dev/sda | grep -e '^E: MAJOR=' | sed -e 's/^E: MAJOR=//') 62 MINOR=$(udevadm info /dev/sda | grep -e '^E: MINOR=' | sed -e 's/^E: MINOR=//')
|
/systemd-251/src/sysupdate/ |
D | sysupdate-partition.c | 267 const PartitionInfo *info, in patch_partition() argument 276 assert(info); in patch_partition() 301 r = fdisk_get_partition(c, info->partno, &pa); in patch_partition() 303 … log_error_errno(r, "Failed to read partition %zu of GPT label of '%s': %m", info->partno, device); in patch_partition() 306 r = fdisk_partition_set_name(pa, info->label); in patch_partition() 312 r = fdisk_partition_set_uuid(pa, SD_ID128_TO_UUID_STRING(info->uuid)); in patch_partition() 320 gpt_partition_type_knows_no_auto(info->type); in patch_partition() 323 gpt_partition_type_knows_read_only(info->type); in patch_partition() 326 gpt_partition_type_knows_growfs(info->type); in patch_partition() 333 flags = info->flags; in patch_partition() [all …]
|
/systemd-251/coccinelle/ |
D | errno.cocci | 3 identifier log_LEVEL_errno =~ "^log_(debug|info|notice|warning|error|emergency)_errno$"; 11 identifier log_LEVEL_errno =~ "^log_(debug|info|notice|warning|error|emergency)_errno$"; 19 identifier log_LEVEL_errno =~ "^log_(debug|info|notice|warning|error|emergency)_errno$"; 28 identifier log_LEVEL_errno =~ "^log_(debug|info|notice|warning|error|emergency)_errno$"; 35 identifier log_LEVEL_errno =~ "^log_(debug|info|notice|warning|error|emergency)_errno$"; 42 identifier log_LEVEL_errno =~ "^log_(debug|info|notice|warning|error|emergency)_errno$"; 51 identifier log_UNIT_LEVEL_errno =~ "^log_(unit|link|netdev|device|token)_(debug|info|notice|warning… 60 identifier log_UNIT_LEVEL_errno =~ "^log_(unit|link|netdev|device|token)_(debug|info|notice|warning… 69 identifier log_UNIT_LEVEL_errno =~ "^log_(unit|link|netdev|device|token)_(debug|info|notice|warning… 79 identifier log_UNIT_LEVEL_errno =~ "^log_(unit|link|netdev|device|token)_(debug|info|notice|warning… [all …]
|
/systemd-251/src/systemctl/ |
D | systemctl-show.c | 269 static void unit_status_info_free(UnitStatusInfo *info) { in unit_status_info_free() argument 273 strv_free(info->documentation); in unit_status_info_free() 274 strv_free(info->dropin_paths); in unit_status_info_free() 275 strv_free(info->triggered_by); in unit_status_info_free() 276 strv_free(info->triggers); in unit_status_info_free() 277 strv_free(info->listen); in unit_status_info_free() 279 while ((c = info->conditions)) { in unit_status_info_free() 280 LIST_REMOVE(conditions, info->conditions, c); in unit_status_info_free() 284 while ((p = info->exec)) { in unit_status_info_free() 285 LIST_REMOVE(exec, info->exec, p); in unit_status_info_free() [all …]
|
D | systemctl-list-machines.c | 30 void machine_info_clear(struct machine_info *info) { in machine_info_clear() argument 31 assert(info); in machine_info_clear() 33 free(info->name); in machine_info_clear() 34 free(info->version); in machine_info_clear() 35 free(info->tainted); in machine_info_clear() 36 free(info->control_group); in machine_info_clear() 37 free(info->state); in machine_info_clear() 38 zero(*info); in machine_info_clear()
|
/systemd-251/src/basic/ |
D | random-util.c | 253 _cleanup_free_ struct rand_pool_info *info = NULL; in random_write_entropy() local 260 info = malloc(offsetof(struct rand_pool_info, buf) + size); in random_write_entropy() 261 if (!info) in random_write_entropy() 264 info->entropy_count = size * 8; in random_write_entropy() 265 info->buf_size = size; in random_write_entropy() 266 memcpy(info->buf, seed, size); in random_write_entropy() 268 if (ioctl(fd, RNDADDENTROPY, info) < 0) in random_write_entropy()
|
D | stat-util.c | 28 struct stat info; in is_symlink() local 32 if (lstat(path, &info) < 0) in is_symlink() 35 return !!S_ISLNK(info.st_mode); in is_symlink() 64 struct stat info; in is_device_node() local 68 if (lstat(path, &info) < 0) in is_device_node() 71 return !!(S_ISBLK(info.st_mode) || S_ISCHR(info.st_mode)); in is_device_node()
|
/systemd-251/src/udev/mtd_probe/ |
D | probe_smartmedia.c | 39 int probe_smart_media(int mtd_fd, mtd_info_t* info) { in probe_smart_media() argument 52 if (info->type != MTD_NANDFLASH) in probe_smart_media() 56 sector_size = info->writesize; in probe_smart_media() 57 block_size = info->erasesize; in probe_smart_media() 58 size_in_megs = info->size / (1024 * 1024); in probe_smart_media()
|
/systemd-251/tools/ |
D | make-man-index.py | 70 for info in sorted(pages, key=lambda info: str.lower(info[0])): 71 refname, section, purpose, realname = info 88 for info in group: 89 refname, section, purpose, realname = info
|
/systemd-251/src/shutdown/ |
D | umount.c | 402 struct loop_info64 info; in delete_loopback() local 424 if (ioctl(fd, LOOP_GET_STATUS64, &info) < 0) { in delete_loopback() 433 VALGRIND_MAKE_MEM_DEFINED(&info, sizeof(info)); in delete_loopback() 436 …if (FLAGS_SET(info.lo_flags, LO_FLAGS_AUTOCLEAR)) /* someone else already set LO_FLAGS_AUTOCLEAR f… in delete_loopback() 439 info.lo_flags |= LO_FLAGS_AUTOCLEAR; in delete_loopback() 440 if (ioctl(fd, LOOP_SET_STATUS64, &info) < 0) { in delete_loopback() 451 if (ioctl(fd, LOOP_GET_STATUS64, &info) < 0) { in delete_loopback() 462 VALGRIND_MAKE_MEM_DEFINED(&info, sizeof(info)); in delete_loopback() 467 if (FLAGS_SET(info.lo_flags, LO_FLAGS_AUTOCLEAR)) in delete_loopback()
|
/systemd-251/src/boot/efi/ |
D | devicetree.c | 69 _cleanup_freepool_ EFI_FILE_INFO *info = NULL; in devicetree_install() local 85 err = get_file_info_harder(handle, &info, NULL); in devicetree_install() 88 if (info->FileSize < FDT_V1_SIZE || info->FileSize > 32 * 1024 * 1024) in devicetree_install() 92 len = info->FileSize; in devicetree_install()
|