__genwqe_search_mapping(9)
π __genwqe_search_mapping β NAME π
okay so bestie, this is the page for __genwqe_search_mapping from the Kernel API Manual (section 9, kernel-space girlies only π
), and it does exactly one thing: it searches for the mapping that belongs to a userspace address. that's it. that's the whole vibe. π
β¨ SYNOPSIS β¨
struct dma_mapping * __genwqe_search_mapping (struct genwqe_file *cfile
, unsigned long u_addr , unsigned int size , dma_addr_t *dma_addr , void
**virt_addr );
like, five arguments, one return, no cap. copy it exactly, don't get creative with the line breaks bestie π
π«Ά ARGUMENTS π«Ά
cfileβ the descriptor of the opened file. it's giving "the file that got opened" energy, no notes πu_addrβ the user virtual address. the address, but make it userspace β¨sizeβ the size of the buffer. how much buffer we're buffering πΈdma_addrβ a DMA address that's gonna get updated. so it goes in, it comes back different, iykyk π«virt_addrβ a virtual address that also gets updated. same deal, gets filled in for you π
π RETURN π
you get back a pointer to the corresponding mapping β the one that matches the address you asked about π― and if nothing's found? you get NULL. not found = nothing for you, bestie π periodt.
π SEE ALSO π
kernel file ./drivers/misc/genwqe/card_dev.c (yes, that's where the whole friend group lives π ) plus this entire squad right here:
genwqe_search_pin(9)genwqe_kill_fasync(9)genwqe_open(9)genwqe_fasync(9)genwqe_release(9)genwqe_vma_close(9)genwqe_mmap(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)
like a whole group chat of genwqe functions and honestly? obsessed π¦
and that's the page!! π huge shoutout to ./drivers/misc/genwqe for hosting this whole situation and to October 2026 for the timestamp β slay, see you in the kernel tree, 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