genwqe_mmap(9)
π 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 π
- Kernel file
./drivers/misc/genwqe/card_dev.cβ the exact kernel file path, right here πΎ genwqe_search_pin(9)__genwqe_search_mapping(9)genwqe_kill_fasync(9)genwqe_open(9)genwqe_fasync(9)genwqe_release(9)genwqe_vma_close(9)do_flash_update(9)ddcb_cmd_cleanup(9)ddcb_cmd_fixups(9)genwqe_execute_ddcb(9)genwqe_ioctl(9)genwqe_device_create(9)genwqe_device_remove(9)
source/version: ./drivers/misc/genwqe πΎ β date: October 2026 π
β page: genwqe_mmap(9) π β bye bestie, slay your kernel adventures! π
π¦ 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