---
name: "dget_dlock"
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/dget_dlock"
---

# dget\_dlock(9)

get a reference to a dentry

## NAME

dget\_dlock - get a reference to a dentry

## SYNOPSIS

**struct dentry \* dget\_dlock(struct dentry \*** *dentry***);**

## ARGUMENTS

*dentry*

dentry to get a reference to

## DESCRIPTION

Given a dentry or **NULL** pointer increment the reference count if appropriate and return the dentry. A dentry will not be destroyed when it has references.

## COPYRIGHT
