.TH "fb_alloc_cmap" 9 "fb_alloc_cmap" "25 May 1998" "Kernel Hacker's Manual" LINUX .SH NAME fb_alloc_cmap \- allocate a colormap .SH SYNOPSIS .B "int" fb_alloc_cmap .BI "(struct fb_cmap *" cmap "," .BI "int " len "," .BI "int " transp ");" .SH ARGUMENTS .IP "cmap" 12 frame buffer colormap structure .IP "len" 12 length of \fIcmap\fP .IP "transp" 12 boolean, 1 if there is transparency, 0 otherwise .SH "DESCRIPTION" Allocates memory for a colormap \fIcmap\fP. \fIlen\fP is the number of entries in the palette. Returns -1 errno on error, or zero on success.