drm_pagemap..._lock_lookup(9)
π drm_pagemap..._lock_lookup(9) β the Kernel API Manual glow-up π
okay bestie, so this is a page from the Kernel API Manual and the star of the show is drm_pagemap_cache_lock_lookup β yes that's a long name, no we are not shortening it, she's iconic and she's earned every character π
β¨ NAME β¨
drm_pagemap_cache_lock_lookup β locks a drm_pagemap_cache so you can do a lookup. that's it, that's the whole vibe π
π¦ SYNOPSIS π¦
int drm_pagemap_cache_lock_lookup (struct drm_pagemap_cache *cache );
literally just hand her a cache pointer and she handles the rest π«Ά
πΈ ARGUMENTS πΈ
cacheβ thedrm_pagemap_cacheyou wanna lock. that's the one. the main character of this call π
β RETURN β
she's giving very simple receipts, ngl:
-EINTRβ returned if she got interrupted while blocking π (rude, but okay)0β everything else. we love a clean zero, no cap β¨
π SEE ALSO π
okay so here's the whole friend group, no one gets left out π«Ά
- the kernel file
./drivers/gpu/drm/drm_pagemap_util.c(that's where she lives, home sweet home π ) struct drm_pagemap_cache(9)struct drm_pagemap_shrinker(9)drm_pagemap_cache_create_devm(9)Cache lookup(9)drm_pagemap_cache_unlock_lookup(9)(the one you call after this one, iykyk π₯)drm_pagemap_get_from_cache(9)drm_pagemap_cache_set_pagemap(9)drm_pagemap_get_from_cache_if_active(9)drm_pagemap_shrinker_might_lock(9)drm_pagemap_shrinker_add(9)drm_pagemap_shrinker_create_devm(9)struct drm_pagemap_owner(9)drm_pagemap_release_owner(9)interconnect_fn(9)drm_pagemap_acquire_owner(9)
bestie note: every single one of those is a real page, go read them, I'm not doing the lore dump for you π
and that's the whole thing!! this page ships out of ./drivers/gpu/drm, stamped October 2026, from the Kernel API Manual β go forth and lock your lookups responsibly ππ π
π¦ 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