drm_mode_gamma_get_ioctl(9)
π NAME π
okay bestie, welcome to the drm_mode_gamma_get_ioctl(9) page from the Kernel API Manual β¨ this one is literally called drm_mode_gamma_get_ioctl β get the gamma table π
β¨ SYNOPSIS β¨
int drm_mode_gamma_get_ioctl (struct drm_device *dev , void *data ,
struct drm_file *file_priv );
π«Ά ARGUMENTS π«Ά
devβ DRM device π₯οΈ the main character itself.dataβ ioctl data π¦ the payload bestie.file_privβ DRM file info ποΈ the file-side details.
πΈ DESCRIPTION πΈ
so what it does: it copies the current gamma table into the storage provided π no cap, thatβs the whole vibe.
it also provides the gamma table size the driver expects, which can be used to size the allocated storage πβ¨ so you know how much room to give it.
and yeah β itβs called by the user via ioctl π«Ά iykyk.
π RETURN π
Zero on success, negative errno on failure β thatβs it, thatβs the rule πβ¨
π¦ SEE ALSO π¦
- Kernel file
./drivers/gpu/drm/drm_color_mgmt.candoverview(9)π the origin-story file, bestie. drm_color_ctm_s31_32_to_qm_n(9)πdrm_crtc_enable_color_mgmt(9)π¨drm_mode_crtc_set_gamma_size(9)πdrm_crtc_supports_legacy_gamma(9)πdrm_crtc_legacy_gamma_set(9)π°οΈdrm_mode_gamma_set_ioctl(9)πdrm_get_color_encoding_name(9)π·οΈdrm_get_color_range_name(9)πdrm_plane_create_color_properties(9)π οΈdrm_color_lut_check(9)βdrm_crtc_load_gamma_888(9)ποΈdrm_crtc_load_gamma_565_from_888(9)ποΈdrm_crtc_load_gamma_555_from_888(9)ποΈdrm_crtc_fill_gamma_888(9)ποΈdrm_crtc_fill_gamma_565(9)ποΈdrm_crtc_fill_gamma_555(9)βοΈdrm_crtc_load_palette_8(9)π¨drm_crtc_fill_palette_332(9)π§drm_crtc_fill_palette_8(9)πdrm_color_lut32_check(9)π
mwah π source/version: ./drivers/gpu/drm; date: October 2026 β thatβs the cute lil footer, bestie, all mentioned and slayed πβ¨
π¦ 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