函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:链接目录项

函数原型:struct dentry *d_splice_alias(struct inode *inode, struct dentry *dentry)

返回类型:struct dentry

参数:

类型参数名称
struct inode *inode
struct dentry *dentry
3002  如果是错误则返回:错误指示
3005  BUG_ON(!目录项存在于哈希中)
3007  如果非inode则转到:out
3010  security_d_instantiate(dentry, inode)
3011  加自旋锁
3012  如果S_ISDIR(i_mode)则
3013  new等于__d_find_any_alias(inode)
3037  否则
3042  返回:new
3045  out :
3046  __d_add(dentry, inode)
3047  返回:NULL
调用者
名称描述
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