---
name: "kmem_cache_shrink"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/kmem_cache_shrink"
---

# kmem\_cache\_shrink(9)

Shrink a cache.

## NAME

kmem\_cache\_shrink - Shrink a cache.

## SYNOPSIS

**int kmem\_cache\_shrink(struct kmem\_cache \*** *cachep***);**

## ARGUMENTS

*cachep*

The cache to shrink.

## DESCRIPTION

Releases as many slabs as possible for a cache. To help debugging, a zero exit status indicates all slabs were released.

## COPYRIGHT
