sas_get_address(9)
πΈ sas_get_address β the kernel API manual, bestie edition πΈ
Okay so you found yourself in section 9 of the kernel API manual (yes, the fancy kernel-only one, not your regular userland pages π
) and you want the tea on sas_get_address. Pull up a chair, this one's short but it slaps.
β¨ NAME β¨
sas_get_address β literally just returns the SAS address of the device π
Like, that's it. That's the whole job. King behavior tbh π
π SYNOPSIS π
u64 sas_get_address (struct scsi_device *sdev );
Note the return type, bestie: a u64. It's giving "big number, no decimals, don't ask questions" energy π₯
π¦ ARGUMENTS π¦
sdevβ the scsi device π«Ά your little SCSI friend that you're asking about. Hand it over and it'll tell you its SAS address.
π DESCRIPTION π
Returns the SAS address of the scsi device β¨
That's the entire description. No disclaimers, no caveats, no "undefined behavior if you sneeze wrong" β just a clean little getter doing its one (1) job and doing it well. Obsessed, honestly π
π SEE ALSO π
Bestie, this is the part where the page absolutely ate β the sibling squad is huge. Every single one of these lives in the kernel file ./drivers/scsi/scsi_transport_sas.c, and here's the full guest list π:
sas_remove_children(9)sas_remove_host(9)sas_tlr_supported(9)sas_disable_tlr(9)sas_enable_tlr(9)sas_ata_ncq_prio_supported(9)sas_phy_alloc(9)sas_phy_add(9)sas_phy_free(9)sas_phy_delete(9)scsi_is_sas_phy(9)sas_port_alloc(9)sas_port_alloc_num(9)sas_port_add(9)sas_port_free(9)sas_port_delete(9)scsi_is_sas_port(9)sas_port_get_phy(9)sas_port_add_phy(9)sas_port_delete_phy(9)sas_rphy_initialize(9)sas_end_device_alloc(9)sas_expander_alloc(9)sas_rphy_add(9)sas_rphy_free(9)sas_rphy_delete(9)sas_rphy_unlink(9)sas_rphy_remove(9)scsi_is_sas_rphy(9)sas_attach_transport(9)sas_release_transport(9)
Phy girlies, port girlies, rphy girlies, transport girlies β everyone showed up. The whole function family is main character energy ππ
Heads up bestie: every single one of those references is written exactly as it appears in the manual, section (9) and all. Don't go removing the numbers, iykyk π«Ά
π§ cute little sign-off π§
This page comes to you straight from the source directory ./drivers/scsi, and it's dated October 2026 β Keep it in your back pocket, and go get that SAS address, bestie. Slay πβ¨π
π¦ 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