frwr_map(9)
frwr_map(9) π
okay so bestie, this page is from the Kernel API Manual and it's all about frwr_map β registering a memory region from an xdr_buf cursor. it's giving kernel memory registration main character energy, no cap. let's get into it β¨
πΈ NAME πΈ
frwr_map β literally registers a memory region from an xdr_buf cursor. periodt. π
β¨ SYNOPSIS β¨
int frwr_map (struct rpcrdma_xprt *r_xprt , struct rpcrdma_xdr_cursor
*cur , bool writing , __be32 xid , struct rpcrdma_mr *mr );
π ARGUMENTS π
r_xprtβ the controlling transport πcurβ cursor tracking position within thexdr_bufπwritingβtruewhen RDMA Write will be used βοΈxidβ XID of RPC using the registered memory πmrβ MR to fill in π§
π DESCRIPTION π
so what this actually does: prepare a REG_MR Work Request to register a memory region for remote access via RDMA READ or RDMA WRITE. iconic behavior honestly. π
it returns 0 on success β cursor advanced past consumed data and mr populated β or a negative errno on failure. ππ
π¦ SEE ALSO π¦
- Kernel file:
./net/sunrpc/xprtrdma/frwr_ops.c frwr_mr_release(9)frwr_reset(9)frwr_mr_init(9)frwr_query_device(9)frwr_wc_fastreg(9)frwr_send(9)frwr_reminv(9)frwr_wc_localinv(9)frwr_wc_localinv_wake(9)frwr_unmap_sync(9)frwr_wc_localinv_done(9)frwr_unmap_async(9)frwr_wp_create(9)
and that's the whole page, bestie π«Ά this one lives at source path ./net/sunrpc/xprtrdma, dated October 2026, and it's literally frwr_map(9). periodt. πβ¨
π¦ 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