dml21_create(9)
π dml21_create(9) β from the Kernel API Manual, bestie
okay so picture this: you're a kernel dev, you need a dml21_context, and this little cutie is the function that makes it happen. it's giving "birth of a context" energy fr fr. β¨
πΈ NAME πΈ
dml21_create β literally creates a dml21_context. that's it, that's the whole vibe. π
π¦ SYNOPSIS π¦
bool dml21_create (const struct dc *in_dc , struct dml2_context
**dml_ctx , const struct dml2_configuration_options *config );
no cap, that's the whole signature β copy it exactly, don't get cute with it. π
π ARGUMENTS π
in_dcβ thedc. yes that's the entire description, she's a woman of few words and we respect it. πdml_ctxβ the freshly createddml21context. this is the output, the main character, the one you came for. βconfigβ thedml21configuration options. the settings, the preferences, the lewk. π
π₯ DESCRIPTION π₯
so the creation of DML21 goes down as part of dc_state creation β like, they're a package deal, you don't get one without the other. π«Ά
and the moment it's created, DML21 IP, SOC and STATES all get initialized right then and there. first breath, first init, iconic behavior only. β¨
π RETURN π
trueβ dml2 got successfully created, slay, we love to see it πfalseβ it did not. π
π§ SEE ALSO π§
- Kernel file:
./drivers/gpu/drm/amd/display/dc/dml2_0/dml21/dml21_wrapper.h
go read the header file bestie, it's right there, iykyk. π
π reminder: false is a real possible answer, so please actually check the return value before you go dereferencing anything. no cap.
that's a wrap! page pulled from the source at ./drivers/gpu/drm/amd/display/..., dated October 2026 β catch you in the next dml21_create(9) session, mwah π«Άπ
π¦ 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