'\" t .\" Title: devres_alloc_node .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "DEVRES_ALLOC_NODE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Driver Basics" .\" ----------------------------------------------------------------- .\" * 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" devres_alloc_node \- Allocate device resource data .SH "SYNOPSIS" .HP \w'void\ *\ devres_alloc_node('u .BI "void * devres_alloc_node(dr_release_t\ " "release" ", size_t\ " "size" ", gfp_t\ " "gfp" ", int\ " "nid" ");" .SH "ARGUMENTS" .PP \fIrelease\fR .RS 4 Release function devres will be associated with .RE .PP \fIsize\fR .RS 4 Allocation size .RE .PP \fIgfp\fR .RS 4 Allocation flags .RE .PP \fInid\fR .RS 4 NUMA node .RE .SH "DESCRIPTION" .PP Allocate devres of \fIsize\fR bytes\&. The allocated area is zeroed, then associated with \fIrelease\fR\&. The returned pointer can be passed to other devres_*() functions\&. .SH "RETURN" .PP Pointer to allocated devres on success, NULL on failure\&. .SH "COPYRIGHT" .br