__mpi3mr_sa..._sas_address(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– __mpi3mr_sa..._sas_address(9) β€” bestie edition πŸ’–

okay so this page lives in the Kernel API Manual (yes that's the manual name, slay) and the actual function we're talking about is __mpi3mr_sas_node_find_by_sas_address β€” the header just had to truncate it with ... because kernel symbol names are lowkey built different 😭


✨ NAME ✨

__mpi3mr_sas_node_find_by_sas_address β€” the sas node search πŸ•΅οΈβ€β™€οΈβœ¨


🌸 SYNOPSIS 🌸

struct mpi3mr_sas_node * __mpi3mr_sas_node_find_by_sas_address (struct
mpi3mr_ioc *mrioc , u64 sas_address , struct mpi3mr_hba_port *hba_port
);

like. it's giving "three arguments, one pointer back, no drama" πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • mrioc β€” the adapter instance reference, aka your whole controller's main character energy πŸ‘‘
  • sas_address β€” the SAS address of the expander or the sas host πŸ¦‹
  • hba_port β€” the HBA port entry 🫢

πŸ”₯ CONTEXT πŸ”₯

⚠️ bestie. the caller should acquire mrioc->sas_node_lock. like, before you call this. no cap. lock it first, question nothing πŸ™ˆπŸ”’

πŸ’œ DESCRIPTION πŸ’œ

so here's the vibe check πŸ‘‡

if the SAS address says the device is direct attached to the controller β€” meaning it's the controller's own SAS address β€” then the SAS node that's associated with the controller gets handed right back to you 🎁✨

otherwise (the more common case, honestly), the sas_address and the hba_port get used together to pin down the exact expander, and the associated sas_node object comes back your way 🌈

and if there's no match? you get NULL. that's it, that's the whole story πŸ’€


⭐ RETURN ⭐

a valid SAS node β€” or NULL. that's the whole menu πŸ“


🧚 SEE ALSO 🧚

the kernel file it actually lives in, first of all:

  • ./drivers/scsi/mpi3mr/mpi3mr_transport.c

and now the entire friend group, no one left behind 🫢 (this is a long list, hydrate before scrolling πŸ’…):


πŸŒˆπŸ’œ sign-off time, bestie πŸ’œπŸŒˆ

this little piece of lore lives at ./drivers/scsi/mpi3mr, and the page is dated October 2026. go forth, lock your sas_node_lock, find your node, and slay ✨ periodt πŸ’…πŸŽ€

πŸ“¦ where this page comes from