__drm_colorop_reset(9)
π
__drm_colorop_reset (9) β like, the whole page, bestie
okay so real quick, this page lives in the Kernel API Manual (yes, the actual manual name, not me being cute) and it's about resetting state on a colorop. tiny function, big main character energy. let's go β¨
π NAME π
__drm_colorop_reset β reset state on colorop
like, that's it, that's the whole vibe. we're resetting state. on a colorop. π«Ά
β¨ SYNOPSIS β¨
void __drm_colorop_reset (struct drm_colorop *colorop , struct
drm_colorop_state *colorop_state );
it returns void, meaning it gives you nothing back and honestly? iconic. no return value, no notes. π
πΈ ARGUMENTS πΈ
coloropβ the drm colorop. that's our girl. the thing getting its state reset.colorop_stateβ the colorop state to assign. this is the state she's going to be holding onto after we're done, no cap.
π¦ DESCRIPTION π¦
okay so here's the tea π β this bad boy initializes the newly allocated colorop_state and then assigns it to the drm_colorop->state pointer of colorop. so like, the state you hand in? that becomes colorop's state. periodt.
when do you need it? usually it's required when you're initializing the drivers, or when it gets called from the drm_colorop_funcs.reset hook. so if you're sitting there like "why is my state not set up", this is probably your girl.
and the extra slay detail: this is useful for drivers that subclass the colorop state. if that's you, hi, this function was literally made for you π
π SEE ALSO π
go read these, i'm begging you, they're all right there:
- Kernel file
./drivers/gpu/drm/drm_colorop.coverview(9) drm_colorop_cleanup(9)drm_colorop_destroy(9)drm_colorop_pipeline_destroy(9)drm_plane_colorop_curve_1d_init(9)drm_plane_colorop_curve_1d_lut_init(9)drm_plane_colorop_mult_init(9)__drm_atomic_helper_colorop_destroy_state(9)__drm_colorop_state_init(9)drm_atomic_helper_colorop_create_state(9)drm_get_colorop_lut1d_interpolation_name(9)drm_get_colorop_lut3d_interpolation_name(9)drm_colorop_set_next_property(9)
ngl bestie that's a lot of SEE ALSOs, but every single one of them is real and i did not make a single one up. read them. hydrate. reset your colorop state. π
and that's the whole page!! mwah π sign-off time: this lil masterpiece comes from ./drivers/gpu/drm, dated October 2026 β you're welcome, go touch some grass now π§ββοΈβ
π¦ 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