__d_rcu_to_refcount(9)

__d_rcu_to_refcount9

Take a refcount on dentry if sequence check is ok

Usage

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.

From linux-manual-3.2 3.2.78-1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.