drm_draw_col...rom_xrgb8888(9)
π 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, inxrgb8888format. 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 π¦
- Kernel file
./drivers/gpu/drm/drm_draw.c drm_draw_can_convert_from_xrgb8888(9)
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
- 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