genwqe_user_vunmap(9)
π genwqe_user_vunmap(9) β the Kernel API Manual glow-up π
Okay bestie, so this one lives in the Kernel API Manual (section 9, if that wasn't obvious) and honestly? It's the undo button of the genwqe world. Like, you mapped something, and now you're taking it back. Queen behavior. β¨
πΈ NAME πΈ
genwqe_user_vunmap β undoes the mapping of user-space memory over to virtual kernel memory, iykyk π«
It's literally the reverse move. The take-backsies. The "no cap we're done here" of memory mappings. π₯
π«Ά SYNOPSIS π«Ά
int genwqe_user_vunmap (struct genwqe_dev *cd , struct dma_mapping *m );
See that int up front? Yeah, it hands something back. And see those two pointers? Those are your whole personality for this call. π
π ARGUMENTS π
cdβ pointer to the genwqe device, aka the main character itself π you don't just call this on any device, you call it on your genwqe device, and it needs the pointer to know who it's dealing with.mβ mapping params, aka all the receipts from the mapping you're undoing π§Ύ this is where the details live.
Lowkey, this is a tiny function. Two arguments. No drama. But every detail matters, so bestie, do not get sloppy with the pointers. π
π¦ SEE ALSO π¦
The whole genwqe friend group, assembled. Take a stroll through the Kernel file ./drivers/misc/genwqe/card_utils.c for the source of truth, then go say hi to:
__genwqe_writeq(9)__genwqe_readq(9)__genwqe_writel(9)__genwqe_readl(9)genwqe_read_app_id(9)genwqe_init_crc32(9)genwqe_crc32(9)genwqe_free_sync_sgl(9)genwqe_user_vmap(9)β the chaotic sibling that does the mapping half of the story π― (yes, the one you're undoing)genwqe_card_type(9)genwqe_card_reset(9)genwqe_set_interrupt_capability(9)genwqe_reset_interrupt_capability(9)set_reg_idx(9)genwqe_ffdc_buff_size(9)genwqe_ffdc_buff_read(9)genwqe_write_vreg(9)genwqe_read_vreg(9)genwqe_base_clock_frequency(9)genwqe_stop_traps(9)genwqe_start_traps(9)
Like, that's a full roster. Ate. π
Okay that's the whole page bestie, go unmap something responsibly π«Άβ¨
This lil icon dropped in ./drivers/misc/genwqe, dated October 2026 β no thoughts, just a timestamp, slay π
π¦ 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