drm_err_printer(9)
π drm_err_printer(9)
okay bestie so this is a page from the Kernel API Manual β yes, the Kernel API Manual, we're doing kernel docs today and honestly? iconic of us. This one's about drm_err_printer, a little function that hands you back a &drm_printer which spits its output straight into drm_err(). that's it, that's the whole vibe. π
β¨ NAME β¨
drm_err_printer β construct a &drm_printer that outputs to drm_err()
like, it builds you a printer object, and that printer's whole personality is "everything goes to drm_err()." no cap. π¦
πΈ SYNOPSIS πΈ
struct drm_printer drm_err_printer (struct drm_device *drm , const char
*prefix );
so you call it, you get a struct drm_printer back. she's giving factory energy. β¨
π ARGUMENTS π
drmβ thestruct drm_devicepointer. yep, the drm device pointer, the whole reason we're here π«Άprefixβ the debug output prefix. lowkey important: passNULLif you want no prefix at all. that's the escape hatch, iykyk π
π RETURN π
you get the drm_printer object back. that's the whole return value, and honestly she ate. π
π₯ SEE ALSO π₯
okay this is the friend group, everyone say hi π β and note the kernel file that goes with all this: ./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_dbg_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)
ngl bestie, every single one of those cross-references matters β that's the whole printer family tree and the macro squad too. don't skip 'em. π
β and that's the page!! sign-off time: this lil doc lives over in ./include/drm, it's dated October 2026, and it's filed under drm_err_printer(9) β go forth and print, main character. ππ§π
π¦ 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