STRUCT _SAS_NODE(9)
π NAME π
okay bestie, this is the struct _sas_node(9) page from the Kernel API Manual, and it's serving sas_host/expander information realness. we're going member by member, no skips, no cap. π«Άβ¨
β¨ SYNOPSIS β¨
here's the struct in all its iconic glory β copy it exactly, bestie:
struct _sas_node {
struct list_head list;
struct device *parent_dev;
u8 num_phys;
u64 sas_address;
u16 handle;
u64 sas_address_parent;
u16 enclosure_handle;
u64 enclosure_logical_id;
u8 responding;
u8 nr_phys_allocated;
struct hba_port *port;
struct _sas_phy *phy;
struct list_head sas_port_list;
struct sas_rphy *rphy;
};
π Members π
member-by-member vibe check, and every one of these is listed here, periodt. π
listβ literally the list of expanders. π«parent_devβ the parent device class.num_physβ the number of phys belonging to this sas_host/expander.sas_addressβ the sas address of this sas_host/expander.handleβ the handle for this sas_host/expander.sas_address_parentβ the sas address of the parent expander or sas host.enclosure_handleβ the handle for this node as a member of an enclosure.respondingβ used in_scsih_expander_device_mark_responding. π₯nr_phys_allocatedβ allocated memory for this many count phys.portβ the hba port entry containing the node's port number info.phyβ a list of phys that make up this sas_host/expander.sas_port_listβ list of ports attached to this sas_host/expander.rphyβ the sas_rphy object of this expander.
quick tiny note, bestie: enclosure_logical_id is in the struct synopsis above, but the Members list doesn't give it its own separate blurb here β so I'm not inventing extra lore. π
π SEE ALSO π
Kernel file: ./drivers/scsi/mpt3sas/mpt3sas_base.h β and the struct/see-also besties are:
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_port(9)struct _sas_phy(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)struct 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)
signed off with π from source/version ./drivers/scsi/mpt3sas, October 2026 β date and source cute and accounted for, bye bestie! ππ
π¦ 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