__genwqe_writeq(9)
β¨ __genwqe_writeq β NAME β¨
okay bestie, gather round π this is the Kernel API Manual page for __genwqe_writeq, and it does exactly one iconic thing: it writes a 64-bit register. that's it, that's the whole vibe. write 64-bit register. slay π
πΈ SYNOPSIS πΈ
int __genwqe_writeq (struct genwqe_dev *cd , u64 byte_offs , u64 val );
like, that's the whole signature. three args, one int back. no cap. β¨
π ARGUMENTS π
cdβ the genwqe device descriptor π«Ά this is your main character struct, the handle to the device you're out here writing into.byte_offsβ the byte offset within BAR π literally just where inside the BAR you're aiming. know your coordinates bestie.valβ the 64-bit value π the actual goods. 64 whole bits of it. she's big, she's wide, she's getting written.
β RETURN β
0β success, we ate, no crumbs π₯< 0β error π something went sideways, negative number means it did not go off without a hitch.
ngl, that's the entire return contract:0if success;< 0if error. no in-between, no "well actually", periodt. π
π¦ SEE ALSO π¦
okay so this is the friend group π―ββοΈ first up, the kernel file this whole thing lives in: ./drivers/misc/genwqe/card_utils.c, and then the whole squad of sibling functions you should also go read, because they're lowkey all connected:
__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)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, twenty-one plus the file itself. she has connections. iykyk π§π
π and that's the page!! mwah π this lil slice of documentation comes to you from./drivers/misc/genwqe, dated October 2026 β the__genwqe_writeq(9)page, Kernel API Manual, signing off πβ¨π«Ά
π¦ 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