---
name: "fb_alloc_cmap"
section: "9"
platform: "linux"
package: "linux-manual-2.6.32"
version: "2.6.32-48squeeze6"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/fb_alloc_cmap"
---

# fb\_alloc\_cmap(9)

allocate a colormap

## NAME

fb\_alloc\_cmap - allocate a colormap

## SYNOPSIS

**int fb\_alloc\_cmap(struct fb\_cmap \*** *cmap***, int** *len***, int** *transp***);**

## ARGUMENTS

*cmap*

frame buffer colormap structure

*len*

length of *cmap*

*transp*

boolean, 1 if there is transparency, 0 otherwise

## DESCRIPTION

Allocates memory for a colormap *cmap*. *len* is the number of entries in the palette.

Returns negative errno on error, or zero on success.

## COPYRIGHT
