'\" t .\" Title: kmem_cache_alloc .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Memory Management in Linux .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "KMEM_CACHE_ALLOC" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Memory Management in Linux" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" kmem_cache_alloc \- Allocate an object .SH "SYNOPSIS" .HP \w'void\ *\ kmem_cache_alloc('u .BI "void * kmem_cache_alloc(struct\ kmem_cache\ *\ " "cachep" ", gfp_t\ " "flags" ");" .SH "ARGUMENTS" .PP \fIcachep\fR .RS 4 The cache to allocate from\&. .RE .PP \fIflags\fR .RS 4 See \fBkmalloc\fR\&. .RE .SH "DESCRIPTION" .PP Allocate an object from this cache\&. The flags are only relevant if the cache has no available objects\&. .SH "COPYRIGHT" .br