drm_print_memory_stats(9)
π 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:
- Kernel file
./drivers/gpu/drm/drm_file.cfile operations(9) drm_file_alloc(9)drm_file_free(9)drm_open(9)drm_release(9)drm_release_noglobal(9)drm_read(9)drm_poll(9)drm_event_reserve_init_locked(9)drm_event_reserve_init(9)drm_event_cancel_free(9)drm_send_event_timestamp_locked(9)drm_send_event_locked(9)drm_send_event(9)drm_show_memory_stats(9)drm_show_fdinfo(9)drm_file_err(9)mock_drm_getfile(9)
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
- 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