drmm_plain_encoder_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ drmm_plain_encoder_alloc πŸŽ€

okay so bestie, you're in the Kernel API Manual (that's the manual name, iykyk) and today's main character is drmm_plain_encoder_alloc. she's small, she's simple, she's literally just an encoder allocator. let's go πŸ’…


✨ NAME ✨

drmm_plain_encoder_alloc β€” Allocate and initialize an encoder πŸ¦‹


🌸 SYNOPSIS 🌸

drmm_plain_encoder_alloc (dev , funcs , encoder_type , name , ... );

like yes, those spaces are exactly how she's written, don't come for her πŸ’€


πŸ’– ARGUMENTS πŸ’–

  • dev β€” the drm device πŸ–₯️
  • funcs β€” the callbacks for this encoder (optional! yes queen, you can pass nothing here 🫢)
  • encoder_type β€” the user visible type of the encoder πŸ‘€
  • name β€” a printf style format string for the encoder name, or NULL for the default name 🏷️
  • ... β€” variable arguments (the lil extras that feed into that format string ✨)

🧚 DESCRIPTION 🧚

So this is the simplified version of drmm_encoder_alloc, ok? πŸŽ€ The way that she only allocates and returns a struct drm_encoder instance, with no subclassing. That's it. That's the whole vibe. no extra layers, no secret extra structs, just the plain encoder and she ate πŸ”₯


⭐ RETURN ⭐

She hands you back a pointer to the new drm_encoder struct πŸ’– β€” or an ERR_PTR on failure 😭 (so bestie, please check that pointer, do not just start using it, that's not the move πŸ™ˆ).


🌈 SEE ALSO 🌈

Kernel file ./include/drm/drm_encoder.h, plus the whole friend group:


lowkey reminder bestie: this page lives in ./include/drm, and ngl the version date on her is October 2026 β€” iconic, we love a forward-thinking timestamp πŸ‘‘πŸ’œ

and that's the page!! mwah, go allocate something cute πŸ’…πŸ’–πŸŽ€

πŸ“¦ where this page comes from