STRUCT MTK_DISP_GAMMA(9)
π struct mtk_disp_gamma(9) β the Display Gamma driver structure, bestie
okay so this is a page from the Kernel API Manual (section 9, the kernel-API girlies) and it's literally just the one struct: struct mtk_disp_gamma. it's the Display Gamma driver structure, and yes she's small but she's iconic π
β¨ SYNOPSIS β¨
here's the whole fit, no cap β copy it exactly:
struct mtk_disp_gamma {
struct clk *clk;
void __iomem *regs;
struct cmdq_client_reg cmdq_reg;
const struct mtk_disp_gamma_data *data;
};
like, four members, four vibes. let's get into it π«Ά
πΈ MEMBERS πΈ
clkβ astruct clk *, and it's the clock for the DISP_GAMMA block. your girl needs her clock, periodt β°regsβ avoid __iomem *, the MMIO registers base. that's where the registers live, fr fr πcmdq_regβ astruct cmdq_client_reg, the CMDQ Client register. yes CMDQ, iykyk π₯dataβ aconst struct mtk_disp_gamma_data *, the platform data for DISP_GAMMA. const because we're respectful of her boundaries β¨
π¦ SEE ALSO π¦
- Kernel file
./drivers/gpu/drm/mediatek/mtk_disp_gamma.cβ go read the source bestie, she ate π
ngl this one's short but she's giving main character energy anyway. every member matters, don't skip the const π
and that's the whole page π sign-off time: this was living in ./drivers/gpu/drm/mediatek, dated October 2026, manual name Kernel API Manual β mwah, go touch some registers, ily ππ
π¦ 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