Name

d_instantiate_unique — instantiate a non-aliased dentry

Synopsis

struct dentry * d_instantiate_unique (struct dentry * entry, struct inode * inode);

Arguments

entry

dentry to instantiate

inode

inode to attach to this dentry

Description

Fill in inode information in the entry. On success, it returns NULL. If an unhashed alias of “entry” already exists, then we return the aliased dentry instead.

Note that in order to avoid conflicts with rename etc, the caller had better be holding the parent directory semaphore.