'\" t .\" Title: devm_kasprintf .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "DEVM_KASPRINTF" "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" devm_kasprintf \- Allocate resource managed space and format a string into that\&. .SH "SYNOPSIS" .HP \w'char\ *\ devm_kasprintf('u .BI "char * devm_kasprintf(struct\ device\ *\ " "dev" ", gfp_t\ " "gfp" ", const\ char\ *\ " "fmt" ", " "\&.\&.\&." ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 Device to allocate memory for .RE .PP \fIgfp\fR .RS 4 the GFP mask used in the \fBdevm_kmalloc\fR call when allocating memory .RE .PP \fIfmt\fR .RS 4 The \fBprintf\fR\-style format string @\&.\&.\&.: Arguments for the format string .RE .PP \fI\&.\&.\&.\fR .RS 4 variable arguments .RE .SH "RETURN" .PP Pointer to allocated string on success, NULL on failure\&. .SH "COPYRIGHT" .br