scsi_dev_info_list_add(9)
π scsi_dev_info_list_add β bestie's guide to the kernel API manual
okay so this is a page from the Kernel API Manual, and it's about scsi_dev_info_list_add, which is literally just "add one dev_info list entry." that's the whole vibe. one entry. in the list. slay. β¨
πΈ NAME πΈ
scsi_dev_info_list_add β add one dev_info list entry. that's it, that's the assignment π
π¦ SYNOPSIS π¦
int scsi_dev_info_list_add (int compatible , char *vendor , char *model
, char *strflags , blist_flags_t flags );
five args, one int coming back at you, no cap. π
π ARGUMENTS π
compatibleβ if it's true, short strings get null terminated. if it's not, they get space padded instead. pick your fighter. βvendorβ the vendor string, bestie. who made it. π·οΈmodelβ the model (product) string. which one is it. π·οΈstrflagsβ an integer string. yes, an integer, but as a string. it's giving duality. πflagsβ ifstrflagsisNULL, this flag value is what gets used instead. the backup plan. π«Ά
π₯ DESCRIPTION π₯
so what it does is: create and add one dev_info entry for vendor, model, strflags or flag. one entry, created, added, done. π
and if compatible is set, like, a few things happen at once β it adds to the tail of the list, it does not space pad, and it sets devinfo->compatible. yes all three, she's multitasking. π
β¨
also important, the scsi_static_device_list entries get added with compatible 1 and clfags NULL. that's literally how the page says it, clfags and all, so don't come for me. π
π RETURN π
0 means OK. an -error means failure. so like... negative number = not the vibe. π
π SEE ALSO π
kernel file ./drivers/scsi/scsi_devinfo.c β go read the source, iykyk. π
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_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)
ngl this one's short and sweet β no deprecated nonsense, no undefined behaviour jumpscares, just a tidy little list-add. you're gonna do great, bestie. π«Άπ
okay and for the sign-off: this whole thing lives under ./drivers/scsi, dated October 2026, and it's from the Kernel API Manual β so go forth, add your entry, and stan the source file. mwah. ππ§ββοΈβ
π¦ 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