drm_gem_obj...memory_stats(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_gem_obj...memory_stats(9) πŸ’…

okay so bestie, welcome to the Kernel API Manual β€” yes, the whole entire manual, and today's main character is this one tiny little boolean function that's honestly kind of a vibe. pull up a chair πŸŽ€


✨ NAME ✨

drm_gem_object_is_shared_for_memory_stats β€” the helper for shared memory stats, that's literally her job description, no cap πŸ’–


🌸 SYNOPSIS 🌸

bool drm_gem_object_is_shared_for_memory_stats (struct drm_gem_object
*obj );

it returns a bool, she takes a struct drm_gem_object *obj, and the call is drm_gem_object_is_shared_for_memory_stats. that's it. that's the whole synopsis. slay πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • obj β€” the obj in question πŸ‘€ like, the actual struct drm_gem_object * you're asking about. that's the one. she's the subject of the investigation, periodt.

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the tea β˜• β€” this helper should only be used for fdinfo shared memory stats. only. exclusively. that's her whole lane and she is not leaving it 🫢

her entire purpose is to determine if a GEM object is shared. is it shared? is it not shared? she returns a bool and lets you know. that's the function. iconic behaviour, honestly.

bestie pls don't repurpose her for something else 😭 she is specifically the fdinfo shared memory stats helper, and the manpage is very clear about that. respect her boundaries fr fr.

🌈 SEE ALSO 🌈

go check out the Kernel file ./include/drm/drm_gem.h β€” and while you're in the neighborhood, here's the whole friend group:


aaaand that's the page πŸŽ€ before you go β€” this whole thing lives in ./include/drm, and it's dated October 2026 ⭐ so like, mark your calendar bestie. bye bye, go read your fdinfo stats responsibly πŸ’œπŸ§š

πŸ“¦ where this page comes from