genwqe_free_sync_sgl(9)
π genwqe_free_sync_sgl(9) β like, the Kernel API Manual page, bestie
okay so this is genwqe_free_sync_sgl(9) from the Kernel API Manual, and honestly? it's the cleanup queen of the genwqe world. she's here to free stuff after the party's over and she does it flawlessly. π
β¨ NAME β¨
genwqe_free_sync_sgl β frees the memory for the sgl and the overlapping pages. no cap, that's literally her whole job. πΈ
π¦ SYNOPSIS π¦
int genwqe_free_sync_sgl (struct genwqe_dev *cd , struct genwqe_sgl *sgl
);
like, she takes two things and hands you back an int. iconic signature tbh. β¨
π ARGUMENTS π
cdβ the genwqe device descriptor. it's giving "your vibe pass to the device" energy π«Άsglβ the scatter gather list describing user-space memory. yes bestie, the actual list. she knows it. π
π₯ DESCRIPTION π₯
so here's the timeline. once the DMA transfer has been completed, we free the memory for the sgl and the cached pages. periodt. π
and the data? it's being transferred from those cached pages into user-space buffers. so like, the pages did their job, the buffers got fed, and now everybody can go home. π
lowkey the whole point: DMA done β free the sgl memory β free the cached pages β data lands in user-space buffers. that's the order of events, don't come for me. π
π§ SEE ALSO π§
Kernel file ./drivers/misc/genwqe/card_utils.c, plus this whole friend group:
__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_user_vmap(9)genwqe_user_vunmap(9)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, read them all, iykyk. πβ¨
aaaand that's the page!! π big slay to ./drivers/misc/genwqe for making it happen β dated October 2026, mwah, hope this helped bestie ππ«Ά
π¦ 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