drm_err_printer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the struct drm_device pointer. yep, the drm device pointer, the whole reason we're here 🫢
  • prefix β€” the debug output prefix. lowkey important: pass NULL if 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


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