__rpcrdma_regbuf_dma_map(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __rpcrdma_regbuf_dma_map β€” like, the whole vibe check πŸ’…

okay bestie, so this is a page straight outta the Kernel API Manual, and the star of the show is __rpcrdma_regbuf_dma_map(9). yes the double underscore is part of the name, she's ✨iconic✨ like that. sit down, grab a strawberry πŸ“, we're gonna DMA-map a regbuf together and it's gonna be so chill.


🌸 NAME 🌸

__rpcrdma_regbuf_dma_map β€” DMA-map a regbuf πŸ’–

like, that's it. that's the whole job. one (1) regbuf, DMA-mapped. no cap.


✨ SYNOPSIS ✨

bool __rpcrdma_regbuf_dma_map (struct rpcrdma_xprt *r_xprt , struct
rpcrdma_regbuf *rb );

it returns a bool, she takes two pointers, and the line break in the middle is NOT a typo, that's just how the original rolls πŸ’€ copy it exactly, okay?


πŸŽ€ ARGUMENTS πŸŽ€

  • r_xprt β€” the controlling transport instance πŸš‚ like, the boss of the whole transport situation, the main character energy of this call tbh
  • rb β€” the regbuf to be mapped 🧚 this is the little buffer getting its glow-up into DMA-land

πŸ¦‹ DESCRIPTION πŸ¦‹

Returns true if the buffer is now DMA mapped to r_xprt's device 🌈

that's the whole plot. no twist ending. if the map went through, you get true, and the buffer is officially living its best life on r_xprt's device. obsessed tbh 🫢


⭐ SEE ALSO ⭐

okay this is the part where I introduce you to the whole friend group 😭 they're all in the kernel file ./net/sunrpc/xprtrdma/verbs.c and they all show up to the group chat together, no one gets left on read:

go read them, they're literally all so good πŸ”₯ iykyk.


πŸ’€ friendly reminder: this page ships out of ./net/sunrpc/xprtrdma and it's dated October 2026. screenshot it, pin it, whatever β€” that's the source/version and the date, bestie, and that's the tea β˜•

k byeee, go map some buffers, ily πŸŽ€πŸ’œπŸŒΈ

πŸ“¦ where this page comes from