drm_dbg_printer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the struct drm_device pointer, or NULL. yes bestie, NULL is allowed, she's flexible like that 🫢
  • category β€” the debug category to use. it's the enum drm_debug_category one, so pick your fighter πŸ’…
  • prefix β€” debug output prefix, or NULL for no prefix. pass NULL if 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 named drm being allowed to be NULL is lowkey the most important detail here β€” don't come for me if you forget it. πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, fr fr:


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