fb_alloc_cmap_gfp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– fb_alloc_cmap_gfp(9) πŸ’–

✨ NAME ✨

fb_alloc_cmap_gfp β€” allocate a colormap. okay bestie, this one is straight out of the Kernel API Manual, and it's giving β€œlet's make a colormap happen” energy. πŸ’…

🌸 SYNOPSIS 🌸

int fb_alloc_cmap_gfp (struct fb_cmap *cmap , int len , int transp ,
       gfp_t flags );

πŸŽ€ ARGUMENTS πŸŽ€

  • cmap β€” frame buffer colormap structure. yes, the actual glow-up target.
  • len β€” length of cmap. literally how long it is.
  • transp β€” boolean, 1 if there is transparency, 0 otherwise. no in-between, bestie.
  • flags β€” flags for kmalloc memory allocation. the little settings for the allocation.

πŸ’… DESCRIPTION πŸ’…

Okay so this function allocates memory for a colormap cmap. and len is the number of entries in the palette β€” fr fr, that's the count. πŸ’–

Returns negative errno on error, or zero on success. slay when it's zero, cry when it's negative. 😭

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group is right here, no cap:


πŸ’Œ cute sign-off: this page comes from ./drivers/video/fbdev/core, dated October 2026, and it's literally fb_alloc_cmap_gfp(9). bye bestie, go allocate something cute 🫢✨
πŸ“¦ where this page comes from