Searched refs:minor (Results 1 - 25 of 25) sorted by relevance

/systemd/src/hibernate-resume/
H A Dhibernate-resume.c62 if (asprintf(&major_minor, "%d:%d", major(st.st_rdev), minor(st.st_rdev)) < 0) {
/systemd/src/login/
H A Dlogind-session-device.c46 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 Dlogind-session-dbus.c374 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 Ddevice-internal.h120 int device_set_devnum(sd_device *device, const char *major, const char *minor);
H A Ddevice-private.c477 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 Dsd-device.c253 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 Dudev-node.c349 /* 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 Dudevadm-info.c167 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 Dudev-event.c113 { .name = "minor", .fmt = 'm', .type = SUBST_MINOR },
242 sprintf(num, "%u", minor(udev_device_get_devnum(dev)));
/systemd/src/basic/
H A Dutil.c267 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 Dterminal-util.c927 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 Dbtrfs-util.c929 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 Dtest-libudev.c76 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 Dtty-ask-password-agent.c407 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 Dgpt-auto-generator.c584 major(devnum), minor(devnum));
860 if (asprintf(&p, "/sys/dev/block/%u:%u/slaves", major(dt), minor(dt)) < 0)
/systemd/src/core/
H A Dautomount.c358 uint32_t major, minor; local
378 minor = param.protosubver.sub_version;
380 log_debug("Autofs protocol version %i.%i", major, minor);
H A Dcgroup.c211 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 Dumount.c87 "%*s " /* (3) major:minor */
514 log_info("Detaching DM %u:%u.", major(m->devnum), minor(m->devnum));
H A Ddevice.c418 * 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 Dudev-test.pl253 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 Dtmpfiles.c1447 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 Dcryptsetup.c255 if (asprintf(ret, "/dev/block/%d:%d", major(st.st_rdev), minor(st.st_rdev)) < 0)
/systemd/src/udev/scsi_id/
H A Dscsi_serial.c831 minor(statbuf.st_rdev));
/systemd/src/journal/
H A Djournalctl.c175 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 Dbootctl.c83 r = asprintf(&t, "/dev/block/%u:%u", major(st.st_dev), minor(st.st_dev));

Completed in 1556 milliseconds