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_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

Proto:struct dentry *d_add_ci(struct dentry *dentry, struct inode *inode, struct qstr *name)

Type:struct dentry

Parameter:

TypeParameterName
struct dentry *dentry
struct inode *inode
struct qstr *name
2142  found = 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)
2143  If found Then
2144  put an inode
2145  Return found
2147  If d_in_lookup(dentry) Then
2148  found = d_alloc_parallel( parent directory , name, in-lookup ones only )
2150  If IS_ERR(found) || Not d_in_lookup(found) Then
2151  put an inode
2152  Return found
2154  Else
2155  found = allocate a dcache entry
2156  If Not found Then
2157  put an inode
2158  Return ERR_PTR( - ENOMEM)
2161  res = splice a disconnected dentry into the tree if one exists
2162  If res Then
2163  dput - release a dentry*@dentry: dentry to release * Release a dentry. This will drop the usage count and if appropriate* call the dentry unlink method as well as removing it from the queues and* releasing its resources
2164  Return res
2166  Return found