fb_alloc_cmap_gfp(9)
π 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,1if there is transparency,0otherwise. no in-between, bestie.flagsβ flags forkmallocmemory 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:
- Kernel file
./drivers/video/fbdev/core/fbcmap.c fb_dealloc_cmap(9)fb_copy_cmap(9)fb_set_cmap(9)fb_default_cmap(9)fb_invert_cmaps(9)
π cute sign-off: this page comes from./drivers/video/fbdev/core, datedOctober 2026, and it's literallyfb_alloc_cmap_gfp(9). bye bestie, go allocate something cute π«Άβ¨
π¦ 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