scsi_get_device_flags(9)
π scsi_get_device_flags β NAME
ok so bestie, welcome to the Kernel API Manual β¨ this one's scsi_get_device_flags β it's the function that gets you the device specific flags from the dynamic device list. yep, that's the whole vibe. π
πΈ SYNOPSIS πΈ
blist_flags_t scsi_get_device_flags (struct scsi_device *sdev , const
unsigned char *vendor , const unsigned char *model );
like, three args in, a blist_flags_t out. slay. π«Ά
π¦ ARGUMENTS π¦
sdevβ thescsi_deviceyou want flags for. that's your main character right there πvendorβ the vendor name π·οΈmodelβ the model name π·οΈ
β¨ DESCRIPTION β¨
okay so here's what happens, no cap: it goes searching through the global scsi_dev_info_list (the one specified by list zero, iykyk) looking for an entry that matches your vendor and model. π
if it finds one? it returns the matching flags value, periodt. π
if it does not find one? then it falls back to the host or global default settings instead. no drama, defaults got you. π«Ά
and when does this whole thing run? during scan time β β that's it, that's the context, don't overthink it.
π SEE ALSO π
Kernel file ./drivers/scsi/scsi_devinfo.c β go read it, it's literally right there π§
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_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 page!! π this one lives under ./drivers/scsi, dated October 2026, and it's scsi_get_device_flags(9) β go off bestie, you got this πππ
π¦ 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