---
name: "d_validate"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/d_validate"
---

# d\_validate(9)

verify dentry provided from insecure source (deprecated)

## NAME

d\_validate - verify dentry provided from insecure source (deprecated)

## SYNOPSIS

**int d\_validate(struct dentry \*** *dentry***, struct dentry \*** *dparent***);**

## ARGUMENTS

*dentry*

The dentry alleged to be valid child of *dparent*

*dparent*

The parent dentry (known to be valid)

## DESCRIPTION

An insecure source has sent us a dentry, here we verify it and **dget** it. This is used by ncpfs in its readdir implementation. Zero is returned in the dentry is invalid.

This function is slow for big directories, and deprecated, do not use it.

## COPYRIGHT
