__extract_blob_lut(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __extract_blob_lut(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’… this one's a little function with a big job, and honestly? she's giving "quiet luxury." no cap.


🌸 NAME 🌸

__extract_blob_lut β€” pulls the DRM lut and the lut size out of a blob. that's it, that's the whole vibe ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

const struct drm_color_lut * __extract_blob_lut (const struct
drm_property_blob *blob , uint32_t *size );

like, look at her. const struct drm_color_lut * in, uint32_t *size out. iconic signature, no notes 😌


πŸŽ€ ARGUMENTS πŸŽ€

  • blob β€” the DRM color mgmt property blob πŸ’– this is the thing you're digging through, bestie.
  • size β€” the lut size 🫢 she's a pointer, so she gets filled in with the size. main character energy fr.

πŸ‘‘ RETURN πŸ‘‘

returns the DRM LUT... or NULL 😭 that's it, that's the whole return story. if it's NULL? yeah. no lut for you. lowkey devastating but okay.


🌈 SEE ALSO 🌈

first up, the kernel file herself lives at ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_color.c πŸ“ go say hi.

and now, the extended friend group β€” every single one of these is invited to the group chat πŸ’…

like, that's a whole color-mgmt friend group and this function is the one who introduces you to everybody 🧚 iykyk.


πŸ’€ real talk though: size is a pointer and it gets written to, so pls don't hand her garbage. and if the blob doesn't have what she needs, she hands you NULL and you must check for it. periodt.

and that's the page, bestie πŸ“ source? it's the kernel file ./drivers/gpu/drm/amd/display/... and this whole thing is dated October 2026 ⭐ mwah, go forth and extract those luts πŸ’œ

πŸ“¦ where this page comes from