---
name: "d_lookup"
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_lookup"
---

# d\_lookup(9)

search for a dentry

## NAME

d\_lookup - search for a dentry

## SYNOPSIS

**struct dentry \* d\_lookup(const struct dentry \*** *parent***, const struct qstr \*** *name***);**

## ARGUMENTS

*parent*

parent dentry

*name*

qstr of name we wish to find

## RETURN

dentry, or NULL

d\_lookup searches the children of the parent dentry for the name in question. If the dentry is found its reference count is incremented and the dentry is returned. The caller must use dput to free the entry when it has finished using it. **NULL** is returned if the dentry does not exist.

## COPYRIGHT
