STRUCT SRPT_PORT(9)
π NAME π
okay bestie, welcome to struct srpt_port(9) from the Kernel API Manual β it's literally the SRPT RDMA port information struct, and it's kind of the main character here. β¨
π SYNOPSIS π
struct srpt_port {
struct srpt_device *sdev;
struct ib_mad_agent *mad_agent;
bool enabled;
u8 port;
u32 sm_lid;
u32 lid;
union ib_gid gid;
struct work_struct work;
char guid_name[64];
struct srpt_port_id *guid_id;
char gid_name[64];
struct srpt_port_id *gid_id;
struct srpt_port_attrib port_attrib;
atomic_t refcount;
struct completion *freed_channels;
struct mutex mutex;
struct list_head nexus_list;
};
πΈ Members πΈ
sdevβ backpointer to the HCA information. iconic little link back home πmad_agentβ per-port management datagram processing information.enabledβ whether or not this target port is enabled. vibe check: on or off? βportβ one-based port number.sm_lidβ cached value of the port'ssm_lid.lidβ cached value of the port'slid.gidβ cached value of the port'sgid.workβ work structure for refreshing the aforementioned cached values. bestie is doing refresh duty πguid_nameβ port name in GUID format.guid_idβ LIO target port information for the port name in GUID format.gid_nameβ port name in GID format.gid_idβ LIO target port information for the port name in GID format.port_attribβ port attributes that can be accessed through configfs.refcountβ number of objects associated with this port.freed_channelsβ completion that will be signaled oncerefcountbecomes0.mutexβ protectsnexus_list. no fighting in the group chat πnexus_listβ nexus list. see alsosrpt_nexus.entry.
π SEE ALSO π
Kernel file: ./drivers/infiniband/ulp/srpt/ib_srpt.h
Also go peek at the whole friend group: enum srpt_command_state(9), struct srpt_ioctx(9), struct srpt_recv_ioctx(9), struct srpt_send_ioctx(9), enum rdma_ch_state(9), struct srpt_rdma_ch(9), struct srpt_nexus(9), struct srpt_port_attrib(9), struct srpt_tpg(9), struct srpt_port_id(9), struct srpt_device(9) π«Ά
xoxo, your kernel bestie π β source/version: ./drivers/infiniband/ulp/srpt, date: October 2026, page: struct srpt_port(9) π
π¦ 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