libie_cp_map_dma_mem(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– libie_cp_map_dma_mem(9) πŸ’–

okay bestie, welcome to the Kernel API Manual β€” yes that's the manual name, we're fancy here πŸŽ€ β€” and today's main character is libie_cp_map_dma_mem, a little function that takes one (1) virtual address and maps it for DMA. That's it, that's the whole vibe. Lowkey iconic. ✨


🌸 NAME 🌸

libie_cp_map_dma_mem β€” map a given virtual address for DMA

Like, it literally does what it says on the tin, no cap. You hand it a virtual address, it does the DMA-mapping thing. Slay.


πŸ¦‹ SYNOPSIS πŸ¦‹

bool libie_cp_map_dma_mem (struct device *dev , void *va , size_t size ,
int direction , struct libie_cp_dma_mem *dma_mem );

She returns a bool, she takes five arguments, she's booked and busy. πŸ’…


πŸ’œ ARGUMENTS πŸ’œ

  • dev β€” device information. The whole "who am I doing this for" of it all.
  • va β€” virtual address to be mapped. This is THE address, the one that gets the glow-up.
  • size β€” size of the memory. Gotta know how much we're working with, obviously.
  • direction β€” DMA direction, either from/to device. Pick a lane, bestie 🫢
  • dma_mem β€” memory for DMA information to be stored. This is where the DMA info goes to live afterwards β€” it's giving "I made you a little home" energy 🏠

⭐ RETURN ⭐

true on success, false on DMA map failure. So basically a vibe check in boolean form β€” if it comes back false, the DMA map did NOT eat, and you should be like "😭 okay noted."

Heads up bestie: false means DMA map failure specifically, so don't go assuming it's something else. Fr fr.

πŸ‘‘ SEE ALSO πŸ‘‘

First up, the kernel file itself is literally right there:

  • Kernel file ./drivers/net/ethernet/intel/libie/controlq.c

And now the full squad, in order, no one left behind πŸ’–:

Note the double-underscore one, __libie_ctlq_xn_push_free(9) β€” she's special, don't @ me. And yes, that one entry is literally struct libie_ctlq_xn_rel_tx_ctx(9), struct and all. Keep it exactly like that, iykyk. 🌈


okay that's the whole page, you ate that πŸ“

Sign-off time, bestie: this page lives at source path ./drivers/net/ethernet/intel/l... (it's truncated in the footer, that's just how she is πŸ™ˆ) and it's dated October 2026. Periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from