---
name: "kcalloc"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/kcalloc"
---

# kcalloc(9)

allocate memory for an array. The memory is set to zero.

## NAME

kcalloc - allocate memory for an array. The memory is set to zero.

## SYNOPSIS

**void \* kcalloc(size\_t** *n***, size\_t** *size***, gfp\_t** *flags***);**

## ARGUMENTS

*n*

number of elements.

*size*

element size.

*flags*

the type of memory to allocate (see kmalloc).

## COPYRIGHT
