/systemd-251/src/test/ |
D | test-udev.c | 90 const char *devpath, *devname, *action; in run() local 139 if (sd_device_get_devname(dev, &devname) >= 0) { in run() 151 (void) mkdir_parents_label(devname, 0755); in run() 153 if (mknod(devname, mode, devnum) < 0) in run() 154 … return log_error_errno(errno, "mknod() failed for '%s': %m", devname); in run() 156 if (unlink(devname) < 0) in run() 157 return log_error_errno(errno, "unlink('%s') failed: %m", devname); in run() 158 (void) rmdir_parents(devname, "/dev"); in run()
|
/systemd-251/src/libsystemd/sd-device/ |
D | sd-device.c | 67 free(device->devname); in device_free() 485 _public_ int sd_device_new_from_devname(sd_device **ret, const char *devname) { in sd_device_new_from_devname() argument 491 assert_return(devname, -EINVAL); in sd_device_new_from_devname() 497 if (isempty(path_startswith(devname, "/dev"))) in sd_device_new_from_devname() 500 if (device_path_parse_major_minor(devname, &mode, &devnum) >= 0) in sd_device_new_from_devname() 506 if (stat(devname, &st) < 0) in sd_device_new_from_devname() 559 int device_set_devname(sd_device *device, const char *devname) { in device_set_devname() argument 564 assert(devname); in device_set_devname() 566 if (devname[0] != '/') in device_set_devname() 567 t = strjoin("/dev/", devname); in device_set_devname() [all …]
|
D | test-sd-device.c | 21 const char *syspath, *sysname, *subsystem = NULL, *devname, *val; in test_sd_device_one() local 113 r = sd_device_get_devname(d, &devname); in test_sd_device_one() 115 r = sd_device_new_from_devname(&dev, devname); in test_sd_device_one() 123 r = sd_device_new_from_path(&dev, devname); in test_sd_device_one()
|
D | device-internal.h | 54 char *devname; member 108 int device_set_devname(sd_device *device, const char *devname);
|
/systemd-251/src/udev/scsi_id/ |
D | scsi_id.h | 51 int scsi_std_inquiry(struct scsi_id_device *dev_scsi, const char *devname); 52 int scsi_get_serial(struct scsi_id_device *dev_scsi, const char *devname,
|
D | scsi_serial.c | 744 int scsi_std_inquiry(struct scsi_id_device *dev_scsi, const char *devname) { in scsi_std_inquiry() argument 750 fd = open(devname, O_RDONLY | O_NONBLOCK | O_CLOEXEC); in scsi_std_inquiry() 752 log_debug_errno(errno, "scsi_id: cannot open %s: %m", devname); in scsi_std_inquiry() 757 log_debug_errno(errno, "scsi_id: cannot stat %s: %m", devname); in scsi_std_inquiry() 783 int scsi_get_serial(struct scsi_id_device *dev_scsi, const char *devname, in scsi_get_serial() argument 796 fd = open(devname, O_RDONLY | O_NONBLOCK | O_CLOEXEC); in scsi_get_serial()
|
/systemd-251/units/ |
D | kmod-static-nodes.service.in | 15 ConditionFileNotEmpty=/lib/modules/%v/modules.devname
|
/systemd-251/src/udev/ |
D | udev-node.c | 319 const char *devname, *id; in update_stack_directory() local 368 r = sd_device_get_devname(dev, &devname); in update_stack_directory() 376 if (asprintf(&data, "%i:%s", priority, devname) < 0) in update_stack_directory()
|
D | udevd.c | 1104 const char *devname; in event_queue_assume_block_device_unlocked() local 1111 r = device_get_whole_disk(dev, NULL, &devname); in event_queue_assume_block_device_unlocked() 1127 if (!streq(devname, event_devname)) in event_queue_assume_block_device_unlocked()
|
/systemd-251/src/systemd/ |
D | sd-device.h | 65 int sd_device_new_from_devname(sd_device **ret, const char *devname);
|
/systemd-251/src/shared/ |
D | dissect-image.c | 193 if (strlen(name) >= sizeof(bp.devname)) in ioctl_partition_add() 196 strcpy(bp.devname, name); in ioctl_partition_add() 246 const char *pttype = NULL, *sysname = NULL, *devname = NULL; in dissect_image() local 360 r = sd_device_get_devname(d, &devname); in dissect_image() 390 n = strdup(devname); in dissect_image() 495 r = make_partition_devname(devname, nr, &node); in dissect_image()
|
/systemd-251/src/partition/ |
D | repart.c | 3971 const char *devname; in context_open_copy_block_paths() local 3982 r = sd_device_get_devname(dev, &devname); in context_open_copy_block_paths() 3986 opened = strdup(devname); in context_open_copy_block_paths()
|