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:search for a dentry

Proto:struct dentry *d_lookup(const struct dentry *parent, const struct qstr *name)

Type:struct dentry

Parameter:

TypeParameterName
const struct dentry *parent
const struct qstr *name
2314  Do
2315  seq = Read side functions for starting and finalizing a read side section.
2316  dentry = __d_lookup - search for a dentry (racy)*@parent: parent dentry*@name: qstr of name we wish to find* Returns: dentry, or NULL* __d_lookup is like d_lookup, however it may (rarely) return a* false-negative result due to unrelated rename activity
2317  If dentry Then Break
2319  When read_seqretry( & rename_lock, seq) cycle
2320  Return dentry
Caller
NameDescribe
lookup_openLook up and maybe create and open the last component
d_hash_and_lookupd_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)