---
name: "kmem_cache_zalloc"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/kmem_cache_zalloc"
---

# kmem\_cache\_zalloc(9)

Allocate an object. The memory is set to zero.

## NAME

kmem\_cache\_zalloc - Allocate an object. The memory is set to zero.

## SYNOPSIS

**void \* kmem\_cache\_zalloc(struct kmem\_cache \*** *cache***, gfp\_t** *flags***);**

## ARGUMENTS

*cache*

The cache to allocate from.

*flags*

See **kmalloc**.

## DESCRIPTION

Allocate an object from this cache and set the allocated memory to zero. The flags are only relevant if the cache has no available objects.

## COPYRIGHT
