drm_draw_col...rom_xrgb8888(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so welcome to the Kernel API Manual πŸ’– β€” this is the page for drm_draw_color_from_xrgb8888(9), and the header is literally out here looking like drm_draw_col...rom_xrgb8888(9) because truncation ate the middle. Not me crying about it. 😭 Anyway, the function’s full name is drm_draw_color_from_xrgb8888, and it converts one pixel from xrgb8888 to the desired format. One pixel. That’s the whole gig. πŸ’…


✨ SYNOPSIS ✨

u32 drm_draw_color_from_xrgb8888 (u32 color , u32 format );

the signature is giving very β€œtwo u32s in, one u32 out” energy, and honestly? iconic. πŸŽ€


πŸŽ€ ARGUMENTS πŸŽ€

  • color β€” input color, in xrgb8888 format. bestie, this is the pixel color you’re bringing to the function. πŸ“
  • format β€” output format. this is the format you want the color converted into. πŸ’«

🌈 RETURN 🌈

You get the color back in the format specified, casted to u32. Or 0 if the format is not supported. That’s it. Periodt. πŸ”₯


πŸ¦‹ SEE ALSO πŸ¦‹

go read those if you want the full lore, iykyk. πŸ’œ


byeee 🫢 β€” source/version: ./drivers/gpu/drm, date: October 2026, manual: Kernel API Manual (header still truncated, love that for us πŸ’…). mwah πŸ’‹

πŸ“¦ where this page comes from