sas_get_port_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ sas_get_port_device(9) ✨

okay bestie, this is the Kernel API Manual entry for sas_get_port_device(9), and we are about to make device discovery make sense. no cap. 🫢

🌸 NAME 🌸

sas_get_port_device β€” discover devices which caused port creation πŸ‘‘

πŸ¦‹ SYNOPSIS πŸ¦‹

int sas_get_port_device (struct asd_sas_port *port );

πŸŽ€ ARGUMENTS πŸŽ€

  • port β€” pointer to struct sas_port of interest. (and yes, the synopsis says struct asd_sas_port *port β€” both of those exact names are in the original, so don't come for me πŸ’…)

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the actual tea, and it's iconic:

  • Devices directly attached to a HA port have no parent. This is how we know they are (domain) "root" devices. 🌱
  • All other devices do, and should have their "parent" pointer set appropriately as soon as a child device is discovered. πŸ”—

🌈 SEE ALSO 🌈

go give these a read, bestie β€” they're all part of the same main-character discovery arc:


okay bye bestie! 🫢 this page comes from the ./drivers/scsi/libsas source/version and is dated October 2026 β€” mwah, stay slaying πŸ’…βœ¨

πŸ“¦ where this page comes from