'\" t .\" Title: kmemdup_nul .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Memory Management in Linux .\" Source: Kernel Hackers Manual 4.9.88 .\" Language: English .\" .TH "KMEMDUP_NUL" "9" "May 2018" "Kernel Hackers Manual 4\&.9\&." "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" kmemdup_nul \- Create a NUL\-terminated string from unterminated data .SH "SYNOPSIS" .HP \w'char\ *\ kmemdup_nul('u .BI "char * kmemdup_nul(const\ char\ *\ " "s" ", size_t\ " "len" ", gfp_t\ " "gfp" ");" .SH "ARGUMENTS" .PP \fIs\fR .RS 4 The data to stringify .RE .PP \fIlen\fR .RS 4 The size of the data .RE .PP \fIgfp\fR .RS 4 the GFP mask used in the \fBkmalloc\fR call when allocating memory .RE .SH "COPYRIGHT" .br