fb_copy_cmap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 🌈


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