STRUCT SRPT_IOCTX(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct srpt_ioctx(9) β€” shared SRPT I/O context information

okay so bestie, welcome to the Kernel API Manual ✨ this one's short and sweet, and it's literally just a little struct that holds the shared I/O context info for SRPT. think of it as the group-chat profile card for one I/O context β€” no cap, that's the whole vibe.


✨ SYNOPSIS ✨

here's the shape of it, exactly as it lives, no edits no notes:

struct srpt_ioctx {
    struct ib_cqe           cqe;
    void *buf;
    dma_addr_t dma;
    uint32_t offset;
    uint32_t index;
 };

πŸŽ€ Members πŸŽ€

bestie these are the fields and what each one is holding down. every single one matters, don't skip πŸ™ˆ

  • cqe β€” the Completion queue element. yeah. that one. it lives here now πŸ’…
  • buf β€” Pointer to the buffer. it's giving "the actual place where the bytes are" πŸ¦‹
  • dma β€” DMA address of the buffer. so the hardware knows where to look too, iconic behavior fr fr ✨
  • offset β€” Offset of the first byte in buf and dma that is actually used. lowkey important: the start of the storage isn't always the start of the actual data, iykyk πŸ“
  • index β€” Index of the I/O context in its ioctx_ring array. its little seat number in the ring, main character energy πŸ‘‘

🌈 SEE ALSO 🌈

go read these next, they're all in the same friend group:

  • Kernel file ./drivers/infiniband/ulp/srpt/ib_srpt.h
  • enum srpt_command_state(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_port(9)
  • struct srpt_device(9)

real talk: this whole page is just ./drivers/infiniband/ulp/srpt doing its thing, and it's dated October 2026. that's the source, that's the version, that's the date β€” periodt πŸ’œ

and that's the page, bestie! struct srpt_ioctx(9) β€” five fields, zero drama, all facts preserved 🫢🌸

πŸ“¦ where this page comes from