scsi_dev_info_list_add_str(9)
β¨ scsi_dev_info_list_add_str(9) β¨
okay so bestie, this one lives in the Kernel API Manual and it's literally the parser that takes your messy little dev_list string and files everything nicely into the scsi_dev_info_list π
π NAME π
scsi_dev_info_list_add_str β parse dev_list and add to the scsi_dev_info_list.
πΈ SYNOPSIS πΈ
int scsi_dev_info_list_add_str (char *dev_list );
π¦ ARGUMENTS π¦
dev_listβ the string of device flags you wanna add, no cap
β¨ DESCRIPTION β¨
So here's the tea π«: it parses dev_list and adds entries to the scsi_dev_info_list. The dev_list is shaped like this:
"vendor:product:flag,vendor:product:flag"
That's the format, periodt. And heads up β dev_list gets modified via strsep, so don't come crying to me if your string looks different after π.
You can call it for command line addition, for proc, or mabye a sysfs interface. iykyk π
π RETURN π
0if OK-erroron failure π
π SEE ALSO π
Kernel file ./drivers/scsi/scsi_devinfo.c, plus all these iconic siblings:
scsi_dev_info_list_add(9)scsi_dev_info_list_add_keyed(9)scsi_dev_info_list_find(9)scsi_get_device_flags(9)scsi_get_device_flags_keyed(9)scsi_exit_devinfo(9)scsi_dev_info_add_list(9)scsi_dev_info_remove_list(9)scsi_init_devinfo(9)
aaaand that's the whole page bestie π«Ά it's from the ./drivers/scsi corner of the kernel, dated October 2026, in the Kernel API Manual β go slay your device flags πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms