---
name: "d_walk"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/d_walk"
---

# d\_walk(9)

walk the dentry tree

## NAME

d\_walk - walk the dentry tree

## SYNOPSIS

**void d\_walk(struct dentry \*** *parent***, void \*** *data***, enum d\_walk\_ret (\****enter***) (void \*, struct dentry \*), void (\****finish***) (void \*));**

## ARGUMENTS

*parent*

start of walk

*data*

data passed to *enter*() and *finish*()

*enter*

callback when first entering the dentry

*finish*

callback when successfully finished the walk

## DESCRIPTION

The *enter*() and *finish*() callbacks are called with d\_lock held.

## COPYRIGHT
