Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: allocate a dcache entry

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

Type:struct dentry

Parameter:

TypeParameterName
struct dentry *parent
const struct qstr *name
1769  dentry = __d_alloc - allocate a dcache entry*@sb: filesystem it will belong to*@name: qstr of the name* Allocates a dentry. It returns %NULL if there is insufficient memory* available. On a success the dentry is returned. The name passed in is
1770  If Not dentry Then Return NULL
1772  spin_lock( & d_lock)
1777  This must be called with d_lock held
1778  parent directory = parent
1779  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
1780  spin_unlock( & d_lock)
1782  Return dentry
Caller
NameDescribe
vfs_tmpfile
d_alloc_name
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
d_alloc_parallel