rtrs_clt_request(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ rtrs_clt_request(9) πŸ’œ

okay bestie, welcome to the Kernel API Manual ✨ you're literally about to read the page for rtrs_clt_request β€” the one that asks for a data transfer to/from the server via RDMA. iykyk 🫢


✨ NAME ✨

rtrs_clt_request β€” request data transfer to/from server via RDMA πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

int rtrs_clt_request (int dir , struct rtrs_clt_req_ops *ops , struct
rtrs_clt_sess *clt , struct rtrs_permit *permit , const struct kvec *vec
, size_t nr , size_t data_len , struct scatterlist *sg , unsigned int
sg_cnt );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dir β€” READ/WRITE. pick your vibe, no in-between πŸŒ€
  • ops β€” the callback function to be called as confirmation, and the pointer. so like, who do we ping when it's done, and with what 🌸
  • clt β€” Session. the whole connection situation πŸ’«
  • permit β€” Preallocated permit. you grab it before, you don't just spawn one mid-request 🎟️
  • vec β€” Message that is sent to server together with the request. Sum of len of all vec elements limited to <= IO_MSG_SIZE. Since the msg is copied internally it can be allocated on stack. stack-allocated is lowkey fine here, not me gatekeeping 🧺
  • nr β€” Number of elements in vec. count 'em πŸ”’
  • data_len β€” length of data sent to/from server πŸ“
  • sg β€” Pages to be sent/received to/from server. the actual payload pages bestie πŸ—‚οΈ
  • sg_cnt β€” Number of elements in the sg πŸ”’βœ¨

πŸ”₯ RETURN πŸ”₯

  • 0 β€” Success πŸ₯³
  • <0 β€” Error 😭
fr fr, anything below zero is a no-go, check it before you celebrate πŸ’€

πŸ‘‘ DESCRIPTION πŸ‘‘

On dir=READ the rtrs client will request a data transfer from Server to client. The data that the server will respond with will be stored in sg when the user receives an RTRS_CLT_RDMA_EV_RDMA_REQUEST_WRITE_COMPL event. yes, that event name is a whole mouthful, we know, and yes, it's spelled exactly like that β€” don't @ me ⭐

On dir=WRITE the rtrs client will rdma write data in sg to server side. iconic behaviour honestly πŸ’…πŸ”₯


🌈 SEE ALSO 🌈

Kernel file ./drivers/infiniband/ulp/rtrs/rtrs-clt.c β€” go read the source, bestie, it's giving main character energy πŸ“–πŸ’–


okay that's the whole page, you ate that πŸ“ this lil manpage lives in ./drivers/infiniband/ulp/rtrs, dated October 2026 β€” mwah, slay, periodt πŸ’‹πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from