STRUCT SRPT_PORT_ATTRIB(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct srpt_port_attrib β€” the Kernel API Manual glow-up ✨

okay so this is a page from the Kernel API Manual (struct srpt_port_attrib(9) section, iykyk) and bestie, it's literally just one little struct holding the attributes for an SRPT port. tiny struct, big main character energy πŸ’…


🌸 NAME 🌸

struct srpt_port_attrib β€” attributes for SRPT port. that's it, that's the vibe πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the whole thing, no cap, copied exactly:

struct srpt_port_attrib {
    u32 srp_max_rdma_size;
    u32 srp_max_rsp_size;
    u32 srp_sq_size;
    bool use_srq;
 };

four members, all iconic in their own way ✨


πŸ’– MEMBERS πŸ’–

let's go through them one by one, bestie, so you know exactly what each one does:

  • srp_max_rdma_size β€” the maximum size of SRP RDMA transfers for new connections. so like, fresh connections only β€” it's giving "first impressions matter" 🫢
  • srp_max_rsp_size β€” the maximum size of SRP response messages, measured in bytes. yes, bytes. she's precise πŸ”₯
  • srp_sq_size β€” shared receive queue (SRQ) size. that's the SRQ, not to be confused with anything else, okay? 😭
  • use_srq β€” a bool that decides whether or not to use SRQ. literally just a yes/no, and honestly? relatable 🌸
lowkey important: use_srq is a bool, and srp_sq_size is described as the shared receive queue (SRQ) size β€” that's what the manual says, so that's what you get. no extra lore from me, periodt πŸ’€

🌈 SEE ALSO 🌈

if you're obsessed with this one (and why wouldn't you be πŸ‘‘), the kernel file to check out is ./drivers/infiniband/ulp/srpt/ib_srpt.h, plus this whole friend group right here:

  • 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_tpg(9)
  • struct srpt_port_id(9)
  • struct srpt_port(9)
  • struct srpt_device(9)

go read them all, bestie, they're all slay in different ways πŸ’œ


and that's the page!! 🧚 source: ./drivers/infiniband/ulp/srpt Β· October 2026 Β· from the Kernel API Manual, section struct srpt_port_attrib(9) β€” mwah, take care of her πŸ«ΆπŸ’–

πŸ“¦ where this page comes from