svc_rdma_xb_dma_map(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… svc_rdma_xb_dma_map β€” bestie edition πŸ’…

okay so real talk, this is a page from the Kernel API Manual, section 9, and it's about svc_rdma_xb_dma_map. she's iconic, she DMA maps stuff, let's get into it 🫢


✨ NAME ✨

svc_rdma_xb_dma_map β€” DMA map all segments of an xdr_buf. that's it, that's the whole job, and she does it flawlessly πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

int svc_rdma_xb_dma_map (const struct xdr_buf *xdr , void *data );

literally just that. two args, one int back. no cap ✨


🌸 ARGUMENTS 🌸

  • xdr β€” the xdr_buf that's holding the portion of an RPC message you wanna transmit. she's the payload girlie πŸ“¦
  • data β€” a pointer to arguments. yes bestie, that's genuinely all the manpage says, don't come for me πŸ™ˆ

⭐ RETURN ⭐

  • 0 β€” DMA mapping was successful. slay! πŸŽ‰
  • -EIO β€” DMA mapping failed. not slay. 😭

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the important bit, and I need you paying attention for this one πŸ‘€

On failure, any DMA mappings that have been already done must be unmapped by the caller.

like, the function doesn't clean up after itself if it bails halfway through β€” that's your problem, bestie. caller's responsibility. don't leave those mappings hanging, that's giving messy πŸ’€


🌈 SEE ALSO 🌈

the kernel file in question: ./net/sunrpc/xprtrdma/svc_rdma_sendto.c πŸ‘‘

and the whole friend group, the squad, the group chat:

like, go read them too. iykyk 🧚


and that's the whole page!! this lil beauty lives at ./net/sunrpc/xprtrdma and the version/date stamp says October 2026 β€” so, yeah, she's from the future, main character energy fr fr πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from