'\" t .\" Title: d_walk .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: The Linux VFS .\" Source: Kernel Hackers Manual 4.12.2 .\" Language: English .\" .TH "D_WALK" "9" "July 2017" "Kernel Hackers Manual 4\&.12\&" "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_walk \- walk the dentry tree .SH "SYNOPSIS" .HP \w'void\ d_walk('u .BI "void d_walk(struct\ dentry\ *\ " "parent" ", void\ *\ " "data" ", enum\ d_walk_ret\ (*" "enter" ")\ (void\ *,\ struct\ dentry\ *), void\ (*" "finish" ")\ (void\ *));" .SH "ARGUMENTS" .PP \fIstruct dentry * parent\fR .RS 4 start of walk .RE .PP \fIvoid * data\fR .RS 4 data passed to \fIenter\fR() and \fIfinish\fR() .RE .PP \fIenum d_walk_ret (*)(void *, struct dentry *) enter\fR .RS 4 callback when first entering the dentry .RE .PP \fIvoid (*)(void *) finish\fR .RS 4 callback when successfully finished the walk .RE .SH "DESCRIPTION" .PP The \fIenter\fR() and \fIfinish\fR() callbacks are called with d_lock held\&. .SH "COPYRIGHT" .br