STRUCT _SAS_PORT(9)
π« struct _sas_port β the whole vibe, explained π«
okay so bestie, welcome to the <italic>Kernel API Manual</italic> entry for struct _sas_port(9) π β yes the manual name is literally just the struct name, we love a self-titled icon. this page is wide/narrow sas port information and it's giving "backstage pass to the expander" energy. let's get into it β¨
πΈ NAME πΈ
struct _sas_port β wide/narrow sas port information, fr fr. that's the whole subtitle and honestly? it ate. π
π¦ SYNOPSIS π¦
here's the struct in all its glory, copied EXACTLY, no cap, do not touch a single character:
struct _sas_port {
struct list_head port_list;
u8 num_phys;
struct sas_identify remote_identify;
struct sas_rphy *rphy;
struct sas_port *port;
struct hba_port *hba_port;
struct list_head phy_list;
};
look at her. seven fields. main character energy. π
π Members π
every single one, bestie, no skipping β this is the whole cast list π«Ά
port_listβ list of ports belonging to expander. like the group chat member list, but for ports. πnum_physβ number of phys belonging to this port. au8, so it's cute and small and knows its limits. π’remote_identifyβ attached device identification. who's that PokΓ©mon? it's the device on the other end, and this is its ID card. πͺͺrphyβ sas transport rphy object. pointer to astruct sas_rphy, living its best transport life. πportβ sas transport wide/narrow port object. pointer to astruct sas_port, the actual port object, extremely iconic of it. πhba_portβ hba port entry containing port's port number info. yes "port" three times, i don't make the rules, the kernel does. πphy_listβ_sas_phylist objects belonging to this port. those underscores are load-bearing, keep them exactly like that. π
π SEE ALSO π
everything else you should go read after this, in the order the page gives them β don't @ me, i'm just the messenger π
- Kernel file
./drivers/scsi/mpt3sas/mpt3sas_base.hβ yes the file is listed here as a reference, iconic behavior, go look at it. - struct
MPT3SAS_TARGET(9) - struct
MPT3SAS_DEVICE(9) - struct
_internal_cmd(9) - struct
_sas_device(9) pcie_device_get(9)pcie_device_free(9)pcie_device_put(9)- struct
_boot_device(9) - struct
_sas_phy(9) - struct
_sas_node(9) - struct
_enclosure_node(9) - enum
reset_type(9) - struct
pcie_sg_list(9) - struct
chain_tracker(9) - struct
scsiio_tracker(9) - struct
request_tracker(9) - struct
_tr_list(9) - struct
_sc_list(9) - struct
_event_ack_list(9) adapter_reply_queue(9)- struct
io_uring_poll_queue(9) - struct
virtual_phy(9) - struct
hba_port(9) - struct
htb_rel_query(9) - struct
MPT3SAS_ADAPTER(9)
that's twenty-six references bestie. twenty-six. the author was NOT playing around with the cross-linking π respect honestly.
π§ sign-off π§
this lil masterpiece lives in ./drivers/scsi/mpt3sas and it's dated October 2026 β yes, future-dated, she's ahead of her time, a true visionary β anyway that's the whole page, you understood it perfectly, i'm so proud of you, go read a _sas_phy next πβ¨ππ¦πΈπ
π«Ά
π¦ 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