fb_copy_cmap(9)
β¨ fb_copy_cmap π
okay so this is a page from the Kernel API Manual about fb_copy_cmap(9) β yes bestie, the framebuffer colormap copier, and honestly? iconic behaviour. let's get into it π
πΈ NAME πΈ
fb_copy_cmap β copy a colormap π¦
β SYNOPSIS β
int fb_copy_cmap (const struct fb_cmap *from , struct fb_cmap *to );
like, that's the whole signature. no cap. π
π ARGUMENTS π
fromβ frame buffer colormap structure π this is the one you're copying out of, the source, the main character.toβ frame buffer colormap structure π«Ά and this is the one you're copying into, the destination, the lucky recipient.
both are struct fb_cmap pointers, and from is const because we are absolutely not touching it, periodt. β¨
π₯ DESCRIPTION π₯
Copy contents of colormap from from to to.
that's it. that's the vibe. the contents of the colormap go from from to to, and honestly the way that these two arguments are just named from and to is so real of the kernel. iykyk. π
π SEE ALSO π
- Kernel file
./drivers/video/fbdev/core/fbcmap.cβ the actual spot where this lives, go look, slay π§ fb_alloc_cmap_gfp(9)fb_dealloc_cmap(9)fb_set_cmap(9)fb_default_cmap(9)fb_invert_cmaps(9)
lowkey a whole little colormap friend group in there, fr fr π go read them too, they ate π
and that's the page bestie!! πΈ brought to you by ./drivers/video/fbdev/core, dated October 2026, filed under fb_copy_cmap(9) β stay copyin' those cmaps, 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