drm_show_fdinfo(9)
β¨ drm_show_fdinfo(9) β¨
okay so this is a page from the Kernel API Manual and it's literally about drm_show_fdinfo β the helper for drm file fops π
bestie, let's get into it.
πΈ NAME πΈ
drm_show_fdinfo β helper for drm file fops. that's it, that's the whole vibe π
π¦ SYNOPSIS π¦
void drm_show_fdinfo (struct seq_file *m , struct file *f );
π ARGUMENTS π
mβ the output stream, aka where all the text goes π«Άfβ the device file instance, the actual file we're snooping on π₯
π DESCRIPTION π
so this function is the helper you use to implement fdinfo β you know, the thing that lets userspace come thru and query usage stats and all that good stuff about a process that's using the GPU πβ¨
also go check out drm_driver.show_fdinfo while you're at it, iykyk.
for the whole text output format description situation, please see Documentation/gpu/drm-usage-stats.rst β the docs ate, no cap π
β SEE ALSO β
okay these are all the references, don't skip 'em, they're all important fr fr π§
- 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_print_memory_stats(9)drm_show_memory_stats(9)drm_file_err(9)mock_drm_getfile(9)
and that's the whole page, bestie π this lil drop lives in ./drivers/gpu/drm π and it's dated October 2026 β mwah, love that for us β go read some kernel source, you're literally the main character of the GPU stats world π
ππ
π¦ 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