pm8001_find_ha_by_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– pm8001_find_ha_by_dev(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual πŸŽ€ β€” yes we're in kernel-land today, and honestly? it's giving "deep lore, but make it cute" ✨. This little function is from the pm8001 SCSI driver, and it's here to do exactly one (1) job, and it does it slayfully.


🌸 NAME 🌸

pm8001_find_ha_by_dev β€” so basically, you hand it a device that came up from the sas layer, and it goes and finds our hba struct for you πŸ’…. That's it. That's the whole vibe. lowkey iconic 🫢


✨ SYNOPSIS ✨

struct pm8001_hba_info * pm8001_find_ha_by_dev (struct domain_device *dev );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the domain device, which comes from the sas layer 🌈. (iykyk β€” that's the thing you're passing in so it can figure out which hba struct is yours.)

πŸŽ€ SEE ALSO πŸŽ€

Kernel file ./drivers/scsi/pm8001/pm8001_sas.c β€” and the whole friend group, fr fr 🫢:


πŸ’€ no warnings, no deprecated nonsense, no undefined behaviour hiding in here β€” this page is clean, bestie. the only risk is forgetting to read the SEE ALSO list, and there are literally 17 of them so 😭 go read 'em.

and that's the whole page, periodt πŸ’… this gem lives in ./drivers/scsi/pm8001, dated October 2026, and it's filed under pm8001_find_ha_by_dev(9) in the Kernel API Manual β€” go off, main character πŸ‘‘πŸ’–

πŸ“¦ where this page comes from