函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\inode.c Create Date:2022-07-29 10:38:05
Last Modify:2020-03-18 19:19:59 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:de_insert5 - obtain an inode from a mounted file system*@inode: pre-allocated inode to use for insert to cache*@hashval: hash value (usually inode number) to get*@test: callback used for comparisons between inodes*@set: callback used to initialize a new

函数原型:struct inode *inode_insert5(struct inode *inode, unsigned long hashval, int (*test)(struct inode *, void *), int (*set)(struct inode *, void *), void *data)

返回类型:struct inode

参数:

类型参数名称
struct inode *inode
unsigned longhashval
int (*test
int (*set
void *data
1074  head等于inode_hashtablehash(i_sb, hashval)
1076  creating等于Misc 按位与I_CREATING
1078  again :
1079  加自旋锁
1080  old等于Called with the inode lock held.
1081  如果此条件成立可能性小(为编译器优化)(old)则
1086  自旋锁解锁
1087  如果是错误则返回:NULL
1089  writeback.h requires fs.h; it, too, is not included from here.
1092  转到:again
1094  返回:old
1097  如果set此条件成立可能性小(为编译器优化)(set(inode, data))则
1098  inode = NULL
1099  转到:unlock
1106  加自旋锁
1107  Misc 或等于I_NEW
1108  hlist_add_head( & i_hash, head)
1109  自旋锁解锁
1110  如果非creatingde_sb_list_add - add inode to the superblock list of inodes*@inode: inode to add
1112  unlock :
1113  自旋锁解锁
1115  返回:inode
调用者
名称描述
iget5_locked从文件系统上获得索引节点
insert_inode_locked4