drm_pagemap..._set_pagemap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’« NAME πŸ’«

drm_pagemap_cache_set_pagemap β€” bestie, this is the one that assigns a drm_pagemap to a drm_pagemap_cache ✨

(also hi, this is the section 9 kernel API manual, we're in the deep lore today 🫢)


🌸 SYNOPSIS 🌸

void drm_pagemap_cache_set_pagemap(struct drm_pagemap_cache *cache,
                                   struct drm_pagemap *dpagemap);

πŸŽ€ ARGUMENTS πŸŽ€

  • cache β€” the drm_pagemap_cache you're assigning the drm_pagemap to πŸ’…
  • dpagemap β€” the drm_pagemap you're assigning, periodt.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so listen πŸ‘€ β€” you call this function to populate a drm_pagemap_cache, and there is exactly one correct moment to do it: only after a call to drm_pagemap_get_from_cache has returned NULL. That's the vibe check, that's the window, that's your moment ✨

no cap, the ordering is the whole bit β€” get the NULL from drm_pagemap_get_from_cache first, then populate with this one πŸ™ˆ

🌈 SEE ALSO 🌈

the whole friend group, lowkey iconic:


πŸ’– that's the whole page bestie, go populate some caches responsibly. shoutout to ./drivers/gpu/drm for housing this masterpiece, dated October 2026, filed under drm_pagemap..._set_pagemap(9) β€” ily, mwah πŸ˜­πŸ‘‘

πŸ“¦ where this page comes from