drm_pagemap...r_might_lock(9)
π drm_pagemap_shrinker_might_lock(9) β Kernel API Manual π
okay bestie, welcome to the Kernel API Manual entry for drm_pagemap_shrinker_might_lock β¨ this one's short and sweet and honestly it's giving "lockdep bestie doing a vibe check before the real thing" energy, iykyk π
β¨ NAME β¨
drm_pagemap_shrinker_might_lock β literally the lockdep test for drm_pagemap_shrinker_add() π«Ά
πΈ SYNOPSIS πΈ
void drm_pagemap_shrinker_might_lock (struct drm_pagemap *dpagemap );
no cap, that's the whole signature, she's tiny π
π¦ ARGUMENTS π¦
dpagemapβ the drm pagemap. that's it. that's the whole argument. the main character of the parameter list π
π DESCRIPTION π
so here's the tea π: drm_pagemap_shrinker_add performs some locking. like, actual locking, not just vibes.
this function right here, drm_pagemap_shrinker_might_lock, is the one you call from code-paths that might call drm_pagemap_shrinker_add β so you can detect any lockdep problems early π₯ catch the lockdep drama before it catches you, periodt.
ngl bestie, she doesn't do the locking herself. she just tells lockdep "hey, we might be about to" so the problems show up early instead of surprising you later π
π SEE ALSO π
go read these next, drink water, and take notes πβ¨
- kernel file
./drivers/gpu/drm/drm_pagemap_util.cπ§ struct drm_pagemap_cache(9)struct drm_pagemap_shrinker(9)drm_pagemap_cache_create_devm(9)Cache lookup(9)drm_pagemap_cache_lock_lookup(9)drm_pagemap_cache_unlock_lookup(9)drm_pagemap_get_from_cache(9)drm_pagemap_cache_set_pagemap(9)drm_pagemap_get_from_cache_if_active(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)
okay that's the whole page bestie, you ate that π«Ά this cutie lives in ./drivers/gpu/drm, dated October 2026, and the header on the tin says drm_pagemap...r_might_lock(9) β slay, go lock some things (but like, check with lockdep first) ππΈβ¨
π¦ 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