__drm_ctm_3x4_to_dc_matrix(9)
π
__drm_ctm_3x4_to_dc_matrix β the kernel API manual, bestie edition β¨
okay so real talk, this page is from the Kernel API Manual (section 9, the kernel-functions girlies) and it's about one tiny little function that does one tiny little glow-up. let me put you on π«Ά
πΈ NAME πΈ
__drm_ctm_3x4_to_dc_matrix β literally converts a DRM CTM 3x4 into a DC CSC float matrix. that's it. that's the whole job. no cap π
β¨ SYNOPSIS β¨
void __drm_ctm_3x4_to_dc_matrix (const struct drm_color_ctm_3x4 *ctm ,
struct fixed31_32 *matrix );
so we got a void return (no output, she just does the thing), and two args: ctm and matrix. that's the whole signature, copy it exactly bestie π
π¦ ARGUMENTS π¦
ctmβ the DRM color transformation matrix, and she is 3x4 dimensions. that's her whole vibe. const too, so we're not touching her πmatrixβ the DC CSC float matrix. this is where the output lives. it's a pointer tostruct fixed31_32, so she's float-adjacent, iykyk β
π₯ DESCRIPTION π₯
the matrix needs to be a 3x4 matrix. that's 12 entries. twelve. count 'em. if you were thinking "hmm maybe it's flexible" β no ma'am, 3x4, 12 entry, periodt π
like that's genuinely the entire description in the original and honestly? iconic. she says what she means and means what she says π
lowkey a mood that the whole DESCRIPTION is one sentence. main character energy fr fr π
π SEE ALSO π
okay this is the part where the original just lists the whole friend group, so let's give them all their moment π every single one, in order, no skipping:
- the kernel file itself:
./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.cβ that's where the source lives π overview(9)amdgpu_dm_init_color_mod(9)__extract_blob_lut(9)__extract_blob_lut32(9)__is_lut_linear(9)__drm_lut_to_dc_gamma(9)__drm_lut32_to_dc_gamma(9)__drm_ctm_to_dc_matrix(9)β yes she has a sibling and yes the 3x4 one is the cooler one π__set_legacy_tf(9)__set_output_tf(9)__set_output_tf_32(9)__set_input_tf(9)__set_input_tf_32(9)amdgpu_dm_verify_lut3d_size(9)amdgpu_dm_verify_lut_sizes(9)amdgpu_dm_check_crtc_color_mgmt(9)amdgpu_dm_update_crtc_color_mgmt(9)amdgpu_dm_update_plane_color_mgmt(9)
that's the whole group chat, all 19 of them (plus the file). go say hi π«Ά
okay that's the page!! per the footer, this one's from ./drivers/gpu/drm/amd/display/... and dated October 2026, and it's __drm_ctm_3x4_to_dc_matrix(9) all over again because manpages love a callback π
now go convert that 3x4, bestie. slay β¨π¦πΈ
π¦ 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