genwqe_mmap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– genwqe_mmap(9) πŸ’–

okay so welcome to genwqe_mmap(9) from the Kernel API Manual β€” this is the kernel-internal manual page and it's giving β€œtiny but important” energy, no cap. 🫢

✨ NAME ✨

  • genwqe_mmap β€” Provide contignous buffers to userspace πŸ’…

🌸 SYNOPSIS 🌸

int genwqe_mmap (struct file *filp , struct vm_area_struct *vma );

πŸŽ€ ARGUMENTS πŸŽ€

  • filp β€” File pointer (unused) πŸ’€ like it's literally there but not doing anything.
  • vma β€” VMA area to map πŸ—ΊοΈ the vibe is β€œmap this area, bestie.”

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so the tea β˜•: we use mmap to allocate contignous buffers used for DMA transfers. After the buffer is allocated we remap it to user-space and remember a reference to our dma_mapping data structure, where we store the associated DMA address and allocated size. ✨

When we receive a DDCB execution request with the ATS bits set to plain buffer, we lookup our dma_mapping list to find the corresponding DMA address for the associated user-space address. πŸ‘‘

🌈 SEE ALSO 🌈


source/version: ./drivers/misc/genwqe πŸ’Ύ β€” date: October 2026 πŸ“… β€” page: genwqe_mmap(9) πŸ’– β€” bye bestie, slay your kernel adventures! 🌟

πŸ“¦ where this page comes from