Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:d_add - add dentry to hash queues*@entry: dentry to add*@inode: The inode to attach to this dentry* This adds the entry to the hash queues and initializes @inode.* The entry was actually filled in earlier during d_alloc().

Proto:void d_add(struct dentry *entry, struct inode *inode)

Type:void

Parameter:

TypeParameterName
struct dentry *entry
struct inode *inode
2678  If inode Then
2679  security_d_instantiate(entry, inode)
2680  spin_lock( & _blocks, i_bytes, maybe i_size )
2682  __d_add(entry, inode)
Caller
NameDescribe
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