drm_pagemap..._create_devm(9)
β¨ drm_pagemap_cache_create_devm β Kernel API Manual β¨
okay so bestie, welcome to the Kernel API Manual, and today's main character is drm_pagemap_cache_create_devm(9) π
πΈ NAME πΈ
drm_pagemap_cache_create_devm β literally just creates a drm_pagemap_cache, that's the whole vibe π
π¦ SYNOPSIS π¦
struct drm_pagemap_cache * drm_pagemap_cache_create_devm (struct
drm_pagemap_shrinker *shrinker );
π ARGUMENTS π
shrinkerβ a pointer to astruct drm_pagemap_shrinker. that's it, that's the input π«Ά
β¨ DESCRIPTION β¨
so what this does is create a device-managed drm_pagemap cache π and the "device-managed" part is the slay here: the cache gets automatically destroyed on struct device removal, no manual cleanup era required. and at that exact moment, any inactive drm_pagemap's get destroyed too. periodt. π
bestie note: it's the inactive ones that get destroyed at that point β the manpage says it like that and we're not changing it. π
π RETURN π
- returns a pointer to a
struct drm_pagemap_cacheon success π - returns an error pointer on failure π
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/drm_pagemap_util.c struct drm_pagemap_cache(9)struct drm_pagemap_shrinker(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_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)
like, read the whole friend group, iykyk π§
aaand that's the page, bestie π this lil gem lives in ./drivers/gpu/drm, dated October 2026, and it's page drm_pagemap..._create_devm(9) of the Kernel API Manual β go off, go read the source, mwah ππ
π¦ 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