rdma_rw_mr_factor(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« NAME πŸ’«

rdma_rw_mr_factor β€” bestie, this one literally just tells you how many MRs you need for a payload ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

unsigned int rdma_rw_mr_factor(struct ib_device *device, u32 port_num,
                               unsigned int maxpages);

πŸŽ€ ARGUMENTS πŸŽ€

  • device β€” the device that's handling the connection, okurrr 🫢
  • port_num β€” the port num your connection is bound to, iykyk
  • maxpages β€” the maximum payload pages per rdma_rw_ctx πŸ“„

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so, rdma_rw_mr_factor returns the number of MRs that your device requires to move maxpayload bytes. no cap, that's the whole vibe πŸ’…

and like, the value it hands back isn't just for show β€” it gets used during transport creation to compute max_rdma_ctxts and the size of the transport's Send and Send Completion Queues. so it's giving lowkey foundational, fr fr πŸ”₯


🌈 SEE ALSO 🌈


and that's the whole page, bestie 🧚 mwah πŸ’‹ β€” brought to you by ./drivers/infiniband/core, dated October 2026, and yes the page itself is rdma_rw_mr_factor(9) slay πŸ’…βœ¨

πŸ“¦ where this page comes from