pvrdma_get_dma_mr(9)
π pvrdma_get_dma_mr(9) β from the Kernel API Manual, bestie β¨
okay so picture this: you're deep in the kernel, right, and you need a DMA memory region, and you're like "bestie who do I even ask" β and boom, this function is literally right there. her whole job is getting you that DMA memory region. no cap. π«Ά
This page lives in section 9 of the manual, and she's a kernel API girlie through and through β not your regular userland nonsense. π
β¨ NAME β¨
pvrdma_get_dma_mr β get a DMA memory region π
like, the name is the vibe. she gets. you a. DMA memory region. periodt.
πΈ SYNOPSIS πΈ
struct ib_mr * pvrdma_get_dma_mr (struct ib_pd *pd , int acc );
that's it. that's the whole call. two arguments, one pointer back out. iconic, honestly. β
π¦ ARGUMENTS π¦
pdβ the protection domain. yes bestie, this is the protection domain you're handing over. she's kind of a big deal. main character energy honestly. πaccβ the access flags. just the flags. that's the whole thing. int-coded and unbothered. π
π₯ RETURN π₯
on success you get an ib_mr pointer β slay, congrats, the mr is yours π β and otherwise it returns an errno. so like, if things go sideways, don't panic, it's giving error code, just check it. π
ngl, always check the return value. "otherwise returns an errno" is right there in the text, so don't come crying to me later if you ignored it. π
π SEE ALSO π
- the Kernel file
./drivers/infiniband/hw/vmw_pvrdma/pvrdma_mr.cβ literally where she lives, go read the source, iykyk π§ pvrdma_reg_user_mr(9)pvrdma_alloc_mr(9)pvrdma_dereg_mr(9)
the whole mr friend group honestly, go say hi. π«Άβ¨
and that's the page, bestie π β this lil masterpiece came from the source/version line ./drivers/infiniband/hw/vmw_pv... and it's dated October 2026, so mark your calendar and stan responsibly. mwah ππ
π¦ 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