STRUCT DMA_MAPPING(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ’–:


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 was struct dma_mapping(9) all along, we just didn't need to be told twice πŸ‘‘πŸŒˆ
πŸ“¦ where this page comes from