Searched refs:model (Results 1 - 11 of 11) sorted by relevance

/systemd/src/udev/scsi_id/
H A Dscsi_id.h30 * added prefixes such as vendor and product (model) strings.
42 char model[17]; member in struct:scsi_id_device
H A Dscsi_id.c157 * if vendor and model are set find the first OPTIONS line in the config
160 * vendor and model can end in '\n'.
163 const char *vendor, const char *model,
250 * Only allow: [vendor=foo[,model=bar]]options=stuff
263 (strneq(model, model_in, strlen(model_in))))) {
265 * Matched vendor and optionally model.
482 udev_util_encode_string(dev_scsi->model, model_enc_str, sizeof(model_enc_str));
486 util_replace_whitespace(dev_scsi->model, model_str, sizeof(model_str));
510 /* get per device (vendor + model) options from the config file */
162 get_file_options(struct udev *udev, const char *vendor, const char *model, int *argc, char ***newargv) argument
H A Dscsi_serial.c191 * If you want to suppress these for a particular drive model, add
449 * model.
457 strncat(serial, dev_scsi->model, MODEL_LENGTH);
546 * For SCSI_ID_VENDOR_SPECIFIC prepend the vendor and model before
641 * Model 4, 5, and (some) model 6 EMC Symmetrix devices return
720 * Model 4, 5, and (some) model 6 EMC Symmetrix devices return
792 * specific type where we prepend '0' + vendor + model.
841 memcpy(dev_scsi->model, buf + 16, 16);
842 dev_scsi->model[16] = '\0';
931 * should be used for this vendor+model, o
[all...]
/systemd/src/udev/ata_id/
H A Data_id.c415 char model[41]; local
475 disk_identify_fixup_string(identify.byte, 27, 40); /* model */
504 memcpy(model, id.model, 40);
505 model[40] = '\0';
506 udev_util_encode_string(model, model_enc, sizeof(model_enc));
507 util_replace_whitespace((char *) id.model, model, 40);
508 util_replace_chars(model, NULL);
541 printf("ID_MODEL=%s\n", model);
[all...]
/systemd/src/locale/
H A Dlocaled.c628 log_info("Changed X11 keyboard layout to '%s' model '%s' variant '%s' options '%s'",
1112 static int verify_xkb_rmlvo(const char *model, const char *layout, const char *variant, const char *options) { argument
1114 .model = model,
1147 static int verify_xkb_rmlvo(const char *model, const char *layout, const char *variant, const char *options) { argument
1154 const char *layout, *model, *variant, *options; local
1161 r = sd_bus_message_read(m, "ssssbb", &layout, &model, &variant, &options, &convert, &interactive);
1168 if (isempty(model))
1169 model = NULL;
1178 !streq_ptr(model,
[all...]
H A Dlocalectl.c353 const char *layout, *model, *variant, *options; local
367 model = n > 2 ? args[2] : "";
379 "ssssbb", layout, model, variant, options,
429 if (startswith(l, "! model"))
/systemd/src/core/
H A Ddevice.c218 const char *model; local
225 model = udev_device_get_property_value(dev, "ID_MODEL_FROM_DATABASE");
226 if (!model)
227 model = udev_device_get_property_value(dev, "ID_MODEL");
229 if (model) {
232 /* Try to concatenate the device model string with a label, if there is one */
242 j = strjoin(model, " ", label, NULL);
248 r = unit_set_description(u, model);
/systemd/hwdb/
H A Dids-update.pl10 open(OUT, ">", "20-usb-vendor-model.hwdb");
29 my $model = uc $1;
32 print(OUT "usb:v" . $vendor . "p" . $model . "*\n");
113 open(OUT, ">", "20-pci-vendor-model.hwdb");
217 open(OUT, ">", "20-sdio-vendor-model.hwdb");
/systemd/src/network/
H A Dnetworkctl.c512 const char *driver = NULL, *path = NULL, *vendor = NULL, *model = NULL, *link = NULL; local
596 r = sd_device_get_property_value(d, "ID_MODEL_FROM_DATABASE", &model);
598 (void) sd_device_get_property_value(d, "ID_MODEL", &model);
626 if (model)
627 printf(" Model: %s\n", model);
/systemd/test/
H A Dudev-test.pl95 SUBSYSTEMS=="scsi", ATTRS{vendor}=="ATA", ATTRS{model}=="ST910021AS X ", SYMLINK+="boot_diskX%n"
96 SUBSYSTEMS=="scsi", ATTRS{vendor}=="ATA", ATTRS{model}=="ST910021AS", SYMLINK+="boot_disk%n"
104 SUBSYSTEMS=="scsi", ATTRS{vendor}=="ATA", ATTRS{model}=="ST910021AS", ATTRS{scsi_level}=="6", ATTRS{rev}=="4.06", ATTRS{type}=="0", ATTRS{queue_depth}=="32", SYMLINK+="boot_diskXX%n"
105 SUBSYSTEMS=="scsi", ATTRS{vendor}=="ATA", ATTRS{model}=="ST910021AS", ATTRS{scsi_level}=="6", ATTRS{rev}=="4.06", ATTRS{type}=="0", SYMLINK+="boot_disk%n"
/systemd/src/bootchart/
H A Dsvg.c149 _cleanup_free_ char *model = NULL; local
164 /* extract root fs so we can find disk model name in sysfs */
173 xsprintf(filename, "/sys/block/%s/device/model", rootbdev);
175 r = read_one_line_file(filename, &model);
177 log_info("Error reading disk model for %s: %m\n", rootbdev);
204 if (model)
205 fprintf(of, "<text class=\"t2\" x=\"20\" y=\"80\">Disk: %s</text>\n", model);

Completed in 5880 milliseconds