drm_mode_gamma_get_ioctl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ¦‹


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