scsi_dev_info_list_find(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ scsi_dev_info_list_find(9) ✨

okay so this is a page from the Kernel API Manual and bestie, it's literally about looking up which dev_info list entry matches your device β€” let's get into it πŸ’…


🌸 NAME 🌸

scsi_dev_info_list_find β€” find a matching dev_info list entry, fr fr.


πŸ¦‹ SYNOPSIS πŸ¦‹

struct scsi_dev_info_list * scsi_dev_info_list_find (const char *vendor
, const char *model , enum scsi_devinfo_key key );

πŸŽ€ ARGUMENTS πŸŽ€

  • vendor β€” the full vendor string. like, the whole thing, not a vibe-based approximation πŸ‘‘
  • model β€” the full model (product) string. yes, full. don't shorten it, she'll notice 🫢
  • key β€” this is the one that specifies which list to use. iykyk ✨

πŸ’– DESCRIPTION πŸ’–

So what it does: it finds the first dev_info entry that matches vendor and model, inside the list that you picked with key. that's it, that's the whole function, and honestly? iconic. first match wins, no cap πŸ”₯


⭐ RETURN ⭐

A pointer to the matching entry πŸ’… β€” or ERR_PTR on failure 😭 (yes, the error pointer. check it, don't just vibe-check it).


🌈 SEE ALSO 🌈

Kernel file ./drivers/scsi/scsi_devinfo.c β€” she's the main character of this whole situation ✨


aaaand that's the whole page, bestie πŸ§šπŸ’œ this one lives in ./drivers/scsi and it's dated October 2026 β€” so yes, future girl summer, we stan πŸ“πŸ‘‘

πŸ“¦ where this page comes from