函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\dcache.c Create Date:2022-07-29 10:37:31
Last Modify:2020-03-18 10:27:32 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:分配高速缓存区

函数原型:struct dentry *d_alloc(struct dentry *parent, const struct qstr *name)

返回类型:struct dentry

参数:

类型参数名称
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  如果非dentry则返回:NULL
1772  加自旋锁
1777  This must be called with d_lock held
1778  parent directory 等于parent
1779  添加链表项
1780  自旋锁解锁
1782  返回:dentry
调用者
名称描述
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