Name

lookup_hash — lookup single pathname component on already hashed name

Synopsis

struct dentry * lookup_hash (const struct qstr * name,
 struct dentry * base);
 

Arguments

name

name and hash to lookup

base

base directory to lookup from

Description

The name must have been verified and hashed (see lookup_one_len). Using this after just full_name_hash is unsafe.

This function also doesn't check for search permission on base directory.

Use lookup_one_len_unlocked instead, unless you really know what you are doing.

Do not hold i_mutex; this helper takes i_mutex if necessary.