函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:添加目录项到哈希队列

函数原型:void d_add(struct dentry *entry, struct inode *inode)

返回类型:void

参数:

类型参数名称
struct dentry *entry
struct inode *inode
2678  如果inode
2679  security_d_instantiate(entry, inode)
2680  加自旋锁
2682  __d_add(entry, inode)
调用者
名称描述
sel_make_avc_files
sel_make_initcon_files
sel_make_perm_files
sel_make_class_dir_entries
sel_make_policycap
sel_make_dirdeclaration for sel_make_class_dirs
sel_fill_super
simple_lookupLookup the data. This is trivial - if the dentry didn't already* exist, we know it is negative. Set d_op to delete negative dentries.
simple_fill_superhe inodes created here are not hashed. If you use iunique to generate* unique inode values later for this filesystem, then you must take care* to pass it an appropriate max_reserved value to avoid collisions.
mknod_ptmx
devpts_pty_newdevpts_pty_new -- create a new inode in /dev/pts/*@ptmx_inode: inode of the master*@device: major+minor of the node to be created*@index: used as a name of the node*@priv: what's given back by devpts_get_priv* The created inode is returned
sel_make_boolsdeclaration for sel_write_load