STRUCT _SAS_NODE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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