Home
last modified time | relevance | path

Searched refs:devname (Results 1 – 12 of 12) sorted by relevance

/systemd-251/src/test/
Dtest-udev.c90 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/
Dsd-device.c67 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 …]
Dtest-sd-device.c21 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()
Ddevice-internal.h54 char *devname; member
108 int device_set_devname(sd_device *device, const char *devname);
/systemd-251/src/udev/scsi_id/
Dscsi_id.h51 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,
Dscsi_serial.c744 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/
Dkmod-static-nodes.service.in15 ConditionFileNotEmpty=/lib/modules/%v/modules.devname
/systemd-251/src/udev/
Dudev-node.c319 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()
Dudevd.c1104 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/
Dsd-device.h65 int sd_device_new_from_devname(sd_device **ret, const char *devname);
/systemd-251/src/shared/
Ddissect-image.c193 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/
Drepart.c3971 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()