STRUCT RPCRDMA_XDR_CURSOR(9)
okay so bestie, welcome to the struct rpcrdma_xdr_cursor(9) page from the Kernel API Manual π this one is literally about a struct that tracks position within an xdr_buf for iterative MR registration, and yes it's giving very niche but very iconic energy β¨
π NAME π
struct rpcrdma_xdr_cursor β tracks position within an xdr_buf for iterative MR registration. Slay π
β¨ SYNOPSIS β¨
here's the exact struct shape, bestie β no cap, copy it character for character:
struct rpcrdma_xdr_cursor {
const struct xdr_buf *xc_buf;
unsigned int xc_page_offset;
unsigned int xc_flags;
};
πΈ Members πΈ
xc_bufβ thexdr_bufbeing iterated π¦xc_page_offsetβ byte offset into the page region consumed so far πxc_flagsβ combination ofXC_*bits β
π Description π
okay so each XC_*_DONE flag means this region has no remaining MR registration work. That condition holds both when the region has already been registered by a prior frwr_map call and when the region is excluded from this chunk type (pre-set at init time by rpcrdma_xdr_cursor_init) β iykyk π
and frwr_map treats the two cases identically: skip the region. periodt π
π₯ SEE ALSO π₯
- Kernel file
./net/sunrpc/xprtrdma/xprt_rdma.h rpcrdma_regbuf_is_mapped(9)rpcrdma_regbuf_dma_map(9)
signed off with sparkles: source/version ./net/sunrpc/xprtrdma, date October 2026, page struct rpcrdma_xdr_cursor(9) π«Άβ¨
π¦ 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