pm8001_find_ha_by_dev(9)
π 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 π«Ά:
pm8001_find_tag(9)pm8001_tag_free(9)pm8001_tag_alloc(9)pm8001_mem_alloc(9)pm8001_phy_control(9)pm8001_scan_start(9)pm8001_task_prep_smp(9)pm8001_task_prep_ata(9)pm8001_task_prep_internal_abort(9)pm8001_task_prep_ssp_tm(9)pm8001_task_prep_ssp(9)pm8001_queue_command(9)pm8001_ccb_task_free(9)pm8001_alloc_dev(9)pm8001_find_dev(9)pm8001_dev_found_notify(9)pm8001_dev_gone_notify(9)pm8001_I_T_nexus_reset(9)
π 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
- 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