STRUCT DMA_MAPPING(9)
π struct dma_mapping(9)
okay so bestie, welcome to the Kernel API Manual β yes we're literally reading kernel API docs together, this is our bonding time π«Ά. Today's main character is struct dma_mapping, and it's exactly what it sounds like: the lil struct that holds information about memory mappings done by the driver. That's it, that's the vibe check β¨.
β¨ SYNOPSIS β¨
okay so here's the whole struct, no cap, every field exactly as it appears, do not touch:
struct dma_mapping {
enum dma_mapping_type type;
void *u_vaddr;
void *k_vaddr;
dma_addr_t dma_addr;
struct page **page_list;
dma_addr_t *dma_list;
unsigned int nr_pages;
unsigned int size;
struct list_head card_list;
struct list_head pin_list;
int write;
};
lowkey obsessed with how tidy that is π but also likeβ¦ the original docs didn't spell out the members below, so neither will I. We don't invent lore in this house π
πΈ Members πΈ
Members
(no like actually β the page leaves this section empty. nothing after the heading. that's the whole section. it's giving mysterious, it's giving enigmatic main character energy π¦ iykyk)
π₯ SEE ALSO π₯
all the sibling structs and friends in the same orbit, go say hi bestie π:
- Kernel file
./drivers/misc/genwqe/card_base.h struct genwqe_reg(9)struct ddcb_queue(9)struct genwqe_dev(9)enum genwqe_requ_state(9)struct genwqe_sgl(9)struct ddcb_requ(9)struct genwqe_file(9)genwqe_get_slu_id(9)genwqe_write_vreg(9)genwqe_read_vreg(9)__genwqe_execute_ddcb(9)__genwqe_execute_raw_ddcb(9)genwqe_is_privileged(9)
and that's the whole page bestie, you ate that ππ
π§ sign-off time: this lil beauty lives in./drivers/misc/genwqe, and it's dated October 2026 β β and yeah, the title wasstruct dma_mapping(9)all along, we just didn't need to be told twice ππ
π¦ 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