---
name: "__d_rcu_to_refcount"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/__d_rcu_to_refcount"
---

# \_\_d\_rcu\_to\_refcount(9)

take a refcount on dentry if sequence check is ok

## NAME

\_\_d\_rcu\_to\_refcount - take a refcount on dentry if sequence check is ok

## SYNOPSIS

**int \_\_d\_rcu\_to\_refcount(struct dentry \*** *dentry***, unsigned** *seq***);**

## ARGUMENTS

*dentry*

dentry to take a ref on

*seq*

seqcount to verify against

## RETURNS

0 on failure, else 1.

\_\_d\_rcu\_to\_refcount operates on a dentry,seq pair that was returned by \_\_d\_lookup\_rcu, to get a reference on an rcu-walk dentry.

## COPYRIGHT
