/systemd/src/udev/scsi_id/ |
H A D | scsi_id.h | 30 * added prefixes such as vendor and product (model) strings. 42 char model[17]; member in struct:scsi_id_device
|
H A D | scsi_id.c | 157 * 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
|
/systemd/src/udev/ata_id/ |
H A D | ata_id.c | 415 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/core/ |
H A D | device.c | 218 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/src/locale/ |
H A D | localectl.c | 353 const char *layout, *model, *variant, *options; local 367 model = n > 2 ? args[2] : ""; 379 "ssssbb", layout, model, variant, options, 429 if (startswith(l, "! model"))
|
H A D | localed.c | 628 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...] |
/systemd/src/bootchart/ |
H A D | svg.c | 149 _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);
|
/systemd/src/network/ |
H A D | networkctl.c | 512 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);
|