drm_pagemap_addr_encode(9)
π drm_pagemap_addr_encode(9) β¨
okay bestie, so this one is a kernel API manual page β literally from the Kernel API Manual, no cap π β and it's about drm_pagemap_addr_encode. The way this function's whole personality is just taking a DMA address and stuffing some metadata in it π¦. Iconic behavior, honestly.
πΈ NAME πΈ
drm_pagemap_addr_encode β bestie, it encodes a dma address with metadata. That's the gig. That's the whole thing. π
β¨ SYNOPSIS β¨
struct drm_pagemap_addr drm_pagemap_addr_encode (dma_addr_t addr , enum
drm_interconnect_protocol proto , unsigned int order , enum
dma_data_direction dir );
like, four arguments in, one struct out. She's a wrapper function and she knows it π«Ά
π ARGUMENTS π
addrβ the dma address, or honestly whatever driver-defined address you want if you're doing driver private interconnects (iykyk π). Your call, main character.protoβ the interconnect protocol. That's it, that's the whole description π she's a simple girl.orderβ the page order of the dma mapping. And because someone's gonna ask: the size isPAGE_SIZE << order. Math queen behavior πdirβ the DMA direction. Which way is the data going? This tells you. β
π₯ RETURN π₯
A struct drm_pagemap_addr encoding all of the above info. She takes your four little facts and gives you back one tidy struct. Slay π
π¦ SEE ALSO π¦
Kernel file ./include/drm/drm_pagemap.h β and while you're in there, peep enum drm_interconnect_protocol(9), struct drm_pagemap_addr(9), struct drm_pagemap_ops(9), struct drm_pagemap(9), struct drm_pagemap_devmem_ops(9), drm_pagemap_get(9), drm_pagemap_get_unless_zero(9), struct drm_pagemap_devmem(9), struct drm_pagemap_migrate_details(9), and struct drm_pagemap_page_zone_device_data(9). It's giving the whole friend group, fr fr π
and that's the page, bestie!! π huge shoutout to ./include/drm for hosting all this, and to the October 2026 date stamp for being so punctual β this one's straight out of the Kernel API Manual and it ate πβ¨π¦π
π¦ 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