sas_end_device_alloc(9)
π sas_end_device_alloc(9) β like, the kernel API manual, bestie β¨
okay so picture this: you're deep in the kernel API manual (that's the 9 section, iykyk) and you need a remote PHY for an end device. this page is exactly that. welcome π«Ά
πΈ NAME πΈ
sas_end_device_alloc β allocate an rphy for an end device. that's the whole vibe. it makes the thing. π
β¨ SYNOPSIS β¨
struct sas_rphy * sas_end_device_alloc (struct sas_port *parent );
that's it. one function, one argument, one dream. π
π ARGUMENTS π
parentβ which port. like, which port, bestie. the one the new thing gets attached to. π
π DESCRIPTION π
so what it does is: allocates an SAS remote PHY structure, connected to parent. that's the tea. it hands you back a shiny new rphy that's already wired up to the port you passed in. no cap. β
π₯ RETURN π₯
you get the SAS PHY allocated β or NULL if the allocation failed. π so like, always check your return value, fr fr. if it's NULL, that's the allocation going π and you gotta handle it.
π¦ SEE ALSO π¦
the whole friend group, honestly. it's giving family reunion:
- kernel file
./drivers/scsi/scsi_transport_sas.c sas_remove_children(9)sas_remove_host(9)sas_get_address(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_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)
ok real talk:parentis astruct sas_port *and this returns astruct sas_rphy *. keep those straight and you're golden. π
that's the whole page, bestie. go allocate something iconic. mwah π
this lil masterpiece lives in ./drivers/scsi, dated October 2026 β and it's sas_end_device_alloc(9), obviously. periodt. πβ¨
π¦ 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