Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\dcache.c Create Date:2022-07-28 20:07:29
Last Modify:2020-03-18 10:27:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:d_hash_and_lookup - hash the qstr then search for a dentry*@dir: Directory to search in*@name: qstr of name we wish to find* On lookup failure NULL is returned; on bad name - ERR_PTR(-error)

Proto:struct dentry *d_hash_and_lookup(struct dentry *dir, struct qstr *name)

Type:struct dentry

Parameter:

TypeParameterName
struct dentry *dir
struct qstr *name
2409  hash = Return the hash of a string of known length
2410  If protected by d_lock & d_flags entries Then
2411  err = d_hash(dir, name)
2412  If Value for the false possibility is greater at compile time(err < 0) Then Return ERR_PTR(err)
2415  Return search for a dentry
Caller
NameDescribe
d_add_cid_add_ci - lookup or allocate new dentry with case-exact name*@inode: the inode case-insensitive lookup has found*@dentry: the negative dentry that was passed to the parent's lookup func*@name: the case-exact name to be associated with the returned
path_pts