drm_print_memory_stats(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– drm_print_memory_stats(9) β€” the Kernel API Manual glow-up ✨

okay so bestie, this is a page from the Kernel API Manual and it's about drm_print_memory_stats(9) β€” literally just a little helper that prints out memory stats for you 🫢 nothing scary, i promise.


🌸 NAME 🌸

drm_print_memory_stats β€” a helper to print memory stats ✨ that's it, that's the whole vibe, it prints stats πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void drm_print_memory_stats (struct drm_printer *p , const struct
       drm_memory_stats *stats , enum drm_gem_object_status supported_status ,
       const char *region );

like, it returns void β€” no return value, no drama, no notes πŸ’€ it just does the thing and dips πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • p β€” the printer you're sending output to πŸ–¨οΈ like, where the text actually goes, that's this one.
  • stats β€” the collected memory stats πŸ“Š the actual numbers you've already gathered, hand 'em over.
  • supported_status β€” a bitmask of the optional stats that are available πŸ”₯ bitmask!! so it's bit flags, meaning more than one optional thing can be turned on at once, iykyk.
  • region β€” the memory region πŸ—ΊοΈ literally which region these stats belong to.

🌈 SEE ALSO 🌈

the whole friend group, no cap 🫢 go read these next:

bestie reminder: drm_show_memory_stats(9) is right there in the list and it's lowkey the sibling of this one β€” don't mix them up πŸ‘€ (they're two separate entries, fr fr)

⭐ sign-off ⭐

this page lives in ./drivers/gpu/drm πŸ“ and it's dated October 2026 β€” yes, october 2026, we're being so ahead of schedule, main character energy tbh πŸ‘‘ and it's titled drm_print_memory_stats(9) in case you forgot already πŸ™ˆ

k bye, go print some stats, slay πŸ’…πŸ’–

πŸ“¦ where this page comes from