dpu_encoder_phys_cmd_init(9)
π dpu_encoder_phys_cmd_init(9) π
okay so bestie, welcome to the dpu_encoder_phys_cmd_init page from the Kernel API Manual β section 9, kernel-space girlie territory. this one is short and sweet and it's giving "one job, does it well." let's get into it π«Ά
β¨ NAME β¨
dpu_encoder_phys_cmd_init β Construct a new command mode physical encoder π
like, literally, that's the whole gig. it builds you a brand-new physical encoder that speaks command mode. no cap.
πΈ SYNOPSIS πΈ
struct dpu_encoder_phys * dpu_encoder_phys_cmd_init (struct drm_device
*dev , struct dpu_enc_phys_init_params *p );
that's it, that's the signature, exact characters, don't @ me π
π¦ ARGUMENTS π¦
devβ the corresponding device, bestie. it's thestruct drm_device *that's gonna handle all the devres management for you. think of it as the responsible friend holding your stuff while you allocate β¨pβ a pointer to the init params structure (struct dpu_enc_phys_init_params *). all the setup deets live in here. you gotta hand it over, no shortcuts π
π RETURN π
it gives you back either an error code (π) or a newly allocated encoder (π₯). that's the whole vibe check β success or the error code, nothing else.
π SEE ALSO π
- Kernel file
./drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.cβ go read the source, iykyk π
ok so real talk: this page is tiny but every single word is load-bearing.devmanages devres,pis your params pointer, and the return is an error code or the freshly allocated encoder. nothing more, nothing less. slay. π
and that's the page, babe! πΈ this icon was brought to you by the ./drivers/gpu/drm/msm/disp/dpu1 source tree, dated October 2026, living its best life in the Kernel API Manual. mwah, go write some encoders πβ¨π
π¦ 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