drm_pagemap_..._to_dpagemap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

drm_pagemap_page_to_dpagemap β€” okay so this one hands you back a pointer to the drm_pagemap of a page, bestie ✨ (this is from the Kernel API Manual, drm_pagemap_..._to_dpagemap(9), and it's lowkey iconic πŸŽ€)


πŸ¦‹ SYNOPSIS πŸ¦‹

struct drm_pagemap * drm_pagemap_page_to_dpagemap (struct page *page );

🌸 ARGUMENTS 🌸

  • page β€” the struct page, bestie. that's it. that's the whole vibe 🫢

πŸ‘‘ RETURN πŸ‘‘

So what you get back is a pointer to the struct drm_pagemap of a device private page that was populated from the struct drm_pagemap. slay πŸ’…

⚠️ But listen β€” if that page was not populated from a struct drm_pagemap, the result is undefined and the function call may result in dereferencing an invalid address 😭 fr fr do not do this to yourself. the vibe check is not passing. πŸ’€

🧚 SEE ALSO 🧚

Go read the kernel file ./drivers/gpu/drm/drm_pagemap.c first, it's giving main character energy πŸ“–βœ¨ and then literally all of these:


That's the whole page, no cap πŸ’œ and to send you off: ./drivers/gpu/drm, October 2026, drm_pagemap_..._to_dpagemap(9) β€” periodt πŸŽ€πŸŒˆβ­

πŸ“¦ where this page comes from