lookup_create(9)

lookup_create9

Lookup a dentry, creating it if it doesn't exist

Usage

struct dentry * lookup_create(struct nameidata * nd, int is_dir);

Arguments

nd

nameidata info

is_dir

directory flag

Overview

Simple function to lookup and return a dentry and create it if it doesn't exist. Is SMP-safe.

Returns with nd->path.dentry->d_inode->i_mutex locked.

Releases

3 releases since Debian 4.0 (Etch); the text changed 2 times.

  1. 4.0
  2. 5.0
  3. 6.0

From linux-manual-2.6.32 2.6.32-48squeeze6 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.