/systemd/src/hibernate-resume/ |
H A D | hibernate-resume.c | 62 if (asprintf(&major_minor, "%d:%d", major(st.st_rdev), minor(st.st_rdev)) < 0) {
|
/systemd/src/login/ |
H A D | logind-session-device.c | 46 uint32_t major, minor; local 52 minor = minor(sd->dev); 75 r = sd_bus_message_append(m, "uuh", major, minor, sd->fd); 93 r = sd_bus_message_append(m, "uus", major, minor, t);
|
H A D | logind-session-dbus.c | 374 uint32_t major, minor; local 382 r = sd_bus_message_read(message, "uu", &major, &minor); 389 dev = makedev(major, minor); 412 uint32_t major, minor; local 420 r = sd_bus_message_read(message, "uu", &major, &minor); 427 dev = makedev(major, minor); 438 uint32_t major, minor; local 446 r = sd_bus_message_read(message, "uu", &major, &minor); 453 dev = makedev(major, minor);
|
/systemd/src/libsystemd/sd-device/ |
H A D | device-internal.h | 120 int device_set_devnum(sd_device *device, const char *major, const char *minor);
|
H A D | device-private.c | 477 const char *major = NULL, *minor = NULL; local 501 minor = value; 524 if (minor != 0) 525 *_minor = minor; 558 const char *major = NULL, *minor = NULL; local 571 r = device_append(device, *key, &major, &minor, &seqnum, &action); 577 r = device_set_devnum(device, major, minor); 579 return log_debug_errno(r, "sd-device: could not set devnum %s:%s: %m", major, minor); 594 const char *major = NULL, *minor = NULL; local 620 r = device_append(device, key, &major, &minor, [all...] |
H A D | sd-device.c | 253 snprintf(id, sizeof(id), "%u:%u", major(devnum), minor(devnum)); 423 int device_set_devnum(sd_device *device, const char *major, const char *minor) { argument 436 if (minor) { 437 r = safe_atou(minor, &min); 446 if (minor) { 447 r = device_add_property_internal(device, "MINOR", minor); 457 static int handle_uevent_line(sd_device *device, const char *key, const char *value, const char **major, const char **minor) { argument 464 assert(minor); 485 *minor = value; 497 const char *syspath, *key = NULL, *value = NULL, *major = NULL, *minor local [all...] |
/systemd/src/udev/ |
H A D | udev-node.c | 349 /* always add /dev/{block,char}/$major:$minor */ 353 minor(udev_device_get_devnum(dev))); 369 /* remove /dev/{block,char}/$major:$minor */ 373 minor(udev_device_get_devnum(dev)));
|
H A D | udevadm-info.c | 167 prefix, minor(statbuf.st_dev)); 169 printf("%u:%u\n", major(statbuf.st_dev), minor(statbuf.st_dev)); 275 " -d --device-id-of-file=FILE Print major:minor of device containing this file\n"
|
H A D | udev-event.c | 113 { .name = "minor", .fmt = 'm', .type = SUBST_MINOR }, 242 sprintf(num, "%u", minor(udev_device_get_devnum(dev)));
|
/systemd/src/basic/ |
H A D | util.c | 267 if (asprintf(&p, "/sys/dev/block/%u:%u/queue", major(d), minor(d)) < 0) 279 if (asprintf(&p, "/sys/dev/block/%u:%u/partition", major(d), minor(d)) < 0) 289 if (asprintf(&p, "/sys/dev/block/%u:%u/../dev", major(d), minor(d)) < 0)
|
H A D | terminal-util.c | 927 if (major(ttynr) == 0 && minor(ttynr) == 0) 949 sprintf(fn, "/dev/char/%u:%u", major(devnr), minor(devnr)); 959 if (asprintf(&b, "pts/%u", minor(devnr)) < 0)
|
H A D | btrfs-util.c | 929 if (asprintf(&p, "/sys/dev/block/%u:%u/loop/backing_file", major(dev), minor(dev)) < 0) 954 if (asprintf(&loop, "/dev/block/%u:%u", major(dev), minor(dev)) < 0)
|
/systemd/src/test/ |
H A D | test-libudev.c | 76 printf("devnum: %u:%u\n", major(devnum), minor(devnum)); 151 printf("looking up device: %u:%u\n", major(devnum), minor(devnum));
|
/systemd/src/tty-ask-password-agent/ |
H A D | tty-ask-password-agent.c | 407 if (asprintf(&p, "/run/systemd/ask-password-block/%u:%u", major(devnr), minor(devnr)) < 0) 446 if (asprintf(&p, "/run/systemd/ask-password-block/%u:%u", major(st.st_rdev), minor(st.st_rdev)) < 0) {
|
/systemd/src/gpt-auto-generator/ |
H A D | gpt-auto-generator.c | 584 major(devnum), minor(devnum)); 860 if (asprintf(&p, "/sys/dev/block/%u:%u/slaves", major(dt), minor(dt)) < 0)
|
/systemd/src/core/ |
H A D | automount.c | 358 uint32_t major, minor; local 378 minor = param.protosubver.sub_version; 380 log_debug("Autofs protocol version %i.%i", major, minor);
|
H A D | cgroup.c | 211 major(st.st_rdev), minor(st.st_rdev), 369 sprintf(buf, "%u:%u %" PRIu64 "\n", major(dev), minor(dev), w->weight); 388 sprintf(buf, "%u:%u %" PRIu64 "\n", major(dev), minor(dev), b->bandwidth);
|
H A D | umount.c | 87 "%*s " /* (3) major:minor */ 514 log_info("Detaching DM %u:%u.", major(m->devnum), minor(m->devnum));
|
H A D | device.c | 418 * check the device node major/minor */ 820 return log_error_errno(errno, "Failed to get udev device from devnum %u:%u: %m", major(st.st_rdev), minor(st.st_rdev));
|
/systemd/test/ |
H A D | udev-test.pl | 253 exp_name => "Major:8:minor:5:kernelnumber:5:id:0:0:0:0" , 255 SUBSYSTEMS=="scsi", KERNELS=="0:0:0:0", SYMLINK+="Major:%M:minor:%m:kernelnumber:%n:id:%b" 345 exp_name => "Major:8-minor:5-kernelnumber:5-id:0:0:0:0", 347 SUBSYSTEMS=="scsi", KERNELS=="0:0:0:0", SYMLINK+="Major:\$major-minor:\$minor-kernelnumber:\$number-id:\$id" 353 exp_name => "Major:8-minor:5-kernelnumber:5-id:0:0:0:0", 355 SUBSYSTEMS=="scsi", KERNELS=="0:0:0:0", DEVPATH=="*/sda/*", SYMLINK+="Major:\$major-minor:%m-kernelnumber:\$number-id:\$id" 371 SUBSYSTEMS=="scsi", KERNELS=="0:0:0:0", DEVPATH=="*/sda/*", SYMLINK+="\$major\$minor\$number" 691 desc => "major/minor number test", 709 desc => "big major and big minor numbe [all...] |
/systemd/src/tmpfiles/ |
H A D | tmpfiles.c | 1447 i->path, major(i->mode), minor(i->mode)); 1933 unsigned major, minor; local 1940 if (sscanf(i.argument, "%u:%u", &major, &minor) != 2) { 1941 log_error("[%s:%u] Can't parse device file major/minor '%s'.", fname, line, i.argument); 1945 i.major_minor = makedev(major, minor);
|
/systemd/src/cryptsetup/ |
H A D | cryptsetup.c | 255 if (asprintf(ret, "/dev/block/%d:%d", major(st.st_rdev), minor(st.st_rdev)) < 0)
|
/systemd/src/udev/scsi_id/ |
H A D | scsi_serial.c | 831 minor(statbuf.st_rdev));
|
/systemd/src/journal/ |
H A D | journalctl.c | 175 return log_error_errno(errno, "Failed to get udev device from devnum %u:%u: %m", major(st.st_rdev), minor(st.st_rdev)); 209 r = asprintf(&match1, "_KERNEL_DEVICE=%c%u:%u", S_ISBLK(st.st_mode) ? 'b' : 'c', major(st.st_rdev), minor(st.st_rdev));
|
/systemd/src/boot/ |
H A D | bootctl.c | 83 r = asprintf(&t, "/dev/block/%u:%u", major(st.st_dev), minor(st.st_dev));
|