'\" t .\" Title: devm_kstrdup .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Driver Basics .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "DEVM_KSTRDUP" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "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_kstrdup \- Allocate resource managed space and copy an existing string into that\&. .SH "SYNOPSIS" .HP \w'char\ *\ devm_kstrdup('u .BI "char * devm_kstrdup(struct\ device\ *\ " "dev" ", const\ char\ *\ " "s" ", gfp_t\ " "gfp" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 Device to allocate memory for .RE .PP \fIs\fR .RS 4 the string to duplicate .RE .PP \fIgfp\fR .RS 4 the GFP mask used in the \fBdevm_kmalloc\fR call when allocating memory .RE .SH "RETURNS" .PP Pointer to allocated string on success, NULL on failure\&. .SH "COPYRIGHT" .br