'\" t .\" Title: d_alloc .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "D_ALLOC" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "The Linux VFS" .\" ----------------------------------------------------------------- .\" * 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" d_alloc \- allocate a dcache entry .SH "SYNOPSIS" .HP \w'struct\ dentry\ *\ d_alloc('u .BI "struct dentry * d_alloc(struct\ dentry\ *\ " "parent" ", const\ struct\ qstr\ *\ " "name" ");" .SH "ARGUMENTS" .PP \fIparent\fR .RS 4 parent of entry to allocate .RE .PP \fIname\fR .RS 4 qstr of the name .RE .SH "DESCRIPTION" .PP Allocates a dentry\&. It returns \fBNULL\fR if there is insufficient memory available\&. On a success the dentry is returned\&. The name passed in is copied and the copy passed in may be reused after this call\&. .SH "COPYRIGHT" .br