---
name: "d_hash_and_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_hash_and_lookup"
---

# d\_hash\_and\_lookup(9)

hash the qstr then search for a dentry

## NAME

d\_hash\_and\_lookup - hash the qstr then search for a dentry

## SYNOPSIS

**struct dentry \* d\_hash\_and\_lookup(struct dentry \*** *dir***, struct qstr \*** *name***);**

## ARGUMENTS

*dir*

Directory to search in

*name*

qstr of name we wish to find

## DESCRIPTION

On lookup failure NULL is returned; on bad name - ERR\_PTR(-error)

## COPYRIGHT
