drm_dbg_printer(9)
π drm_dbg_printer(9) β Kernel API Manual, bestie edition π
okay so picture this: you're deep in kernel land, you're working with DRM, and you need a &drm_printer that's specifically wired up for drm device specific output. that's literally it. that's the whole ~vibe~ of drm_dbg_printer. no cap. π¦
β¨ SYNOPSIS β¨
struct drm_printer drm_dbg_printer (struct drm_device *drm , enum
drm_debug_category category , const char *prefix );
look at her. iconic signature. she takes three arguments and hands you back a struct drm_printer. slay. π
πΈ ARGUMENTS πΈ
drmβ thestruct drm_devicepointer, orNULL. yes bestie,NULLis allowed, she's flexible like that π«Άcategoryβ the debug category to use. it's theenum drm_debug_categoryone, so pick your fighter πprefixβ debug output prefix, orNULLfor no prefix. passNULLif you're feeling minimal, no judgment π
β RETURN β
The struct drm_printer object. that's the whole return value. you get a printer, you go print things, you live your truth. periodt. π
ngl, the argument nameddrmbeing allowed to beNULLis lowkey the most important detail here β don't come for me if you forget it. π
π₯ SEE ALSO π₯
the whole friend group, fr fr:
- Kernel file
./include/drm/drm_print.h print(9)enum drm_debug_category(9)struct drm_printer(9)drm_vprintf(9)drm_printf_indent(9)struct drm_print_iterator(9)drm_coredump_printer(9)drm_coredump_printer_is_full(9)drm_seq_file_printer(9)drm_info_printer(9)drm_err_printer(9)drm_line_printer(9)DRM_DEV_ERROR(9)DRM_DEV_ERROR_RATELIMITED(9)DRM_DEV_DEBUG(9)DRM_DEV_DEBUG_DRIVER(9)DRM_DEV_DEBUG_KMS(9)
and that's the page!! π§ this one lives over in ./include/drm, it's dated October 2026, and it's part of the Kernel API Manual β go read it again if you forgot anything, i'll wait ππΈ
okay bye bestie, go construct some printers responsibly π β¨π¦
π¦ 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