scsi_get_device_flags_keyed(9)
π scsi_get_device_flags_keyed(9) π
ok so bestie, you're reading the scsi_get_device_flags_keyed(9) page from the Kernel API Manual β yes, the kernel one, we're literally in the big leagues now β¨ grab a strawberry drink and let's go π
πΈ NAME πΈ
scsi_get_device_flags_keyed β get device specific flags from the dynamic device list π
like, you want the flags that are specific to a device? this is the function that fishes them out of the dynamic device list for you. no cap π«Ά
π¦ SYNOPSIS π¦
blist_flags_t scsi_get_device_flags_keyed (struct scsi_device *sdev ,
const unsigned char *vendor , const unsigned char *model , enum
scsi_devinfo_key key );
the vibe check: it hands you back a blist_flags_t, and it wants a struct scsi_device *sdev, a couple of const unsigned char * strings (vendor and model), and an enum scsi_devinfo_key key to tell it which list to rummage through π
π ARGUMENTS π
sdevβ thescsi_deviceyou want flags for. your main character device, basically π«vendorβ vendor name. who made it π·οΈmodelβ model name. which one is it πkeyβ the list to look up. tells the function whichscsi_dev_info_listto go digging in π
β¨ DESCRIPTION β¨
okay so here's what actually happens π
it searches the scsi_dev_info_list specified by key for an entry matching vendor and model. if it finds one, it returns the matching flags value. slay π
but if it doesn't find one? it returns the host or global default settings instead β no big dramatic meltdown, just the defaults, and honestly that's a healthy boundary π§
and the little detail iykyk: this is called during scan time π₯
π SEE ALSO π
kernel file ./drivers/scsi/scsi_devinfo.c β that's where the real action lives, go read it bestie π
scsi_dev_info_list_add(9)scsi_dev_info_list_add_keyed(9)scsi_dev_info_list_find(9)scsi_dev_info_list_add_str(9)scsi_get_device_flags(9)scsi_exit_devinfo(9)scsi_dev_info_add_list(9)scsi_dev_info_remove_list(9)scsi_init_devinfo(9)
π reminder: every single one of these is a real reference from the page β don't skip 'em, they're the whole friend group π«Ά
and that's the page, periodt π this little beauty lives over in ./drivers/scsi, it's dated October 2026, and it answers to scsi_get_device_flags_keyed(9) β mwah, go get those flags bestie πβ¨π¦
π¦ 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