STRUCT HOST_PORT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to the struct host_port(9) page from the Kernel API Manual. NAME says it plain: struct host_port - host port details. It's literally the little record that keeps the host-port lore together, and it's giving main character energy in the kernel. slay. ✨


πŸŽ€ SYNOPSIS πŸŽ€

here's the struct in all its exact, character-for-character glory β€” do not touch the code, bestie, we respect the code in this house:

       struct host_port {
           u64 sas_address;
           u64 phy_mask;
           u16 handle;
           u8 iounit_port_id;
           u8 used;
           u8 lowest_phy;
        };

that's the whole shape of it πŸ’…

πŸ¦‹ Members πŸ¦‹

the members are giving tiny field, big job energy:

  • sas_address β€” the SAS Address of the attached device. iconic.
  • phy_mask β€” the phy mask of host port.
  • handle β€” the Device Handle of attached device.
  • iounit_port_id β€” the port ID.
  • used β€” host port is already matched with sas port from sas_port_list. yep, that's the whole "already matched" situation, no cap.
  • lowest_phy β€” the lowest phy ID of host port.

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./drivers/scsi/mpi3mr/mpi3mr_transport.c

these are the cousins, bestie β€” every single SEE ALSO reference, no skips, fr fr:


peace out, bestie 🫢 β€” source/version is ./drivers/scsi/mpi3mr, date is October 2026, and this has been the struct host_port(9) manual page. periodt. πŸ’…

πŸ“¦ where this page comes from