函数逻辑报告

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

函数名称:从文件系统上获得索引节点

函数原型:struct inode *iget_locked(struct super_block *sb, unsigned long ino)

返回类型:struct inode

参数:

类型参数名称
struct super_block *sb
unsigned longino
1174  head等于inode_hashtablehash(sb, ino)
1176  again :
1177  加自旋锁
1178  inode等于d_inode_fast is the fast path version of find_inode, see the comment at* iget_locked for details.
1179  自旋锁解锁
1180  如果inode
1181  如果是错误则返回:NULL
1183  writeback.h requires fs.h; it, too, is not included from here.
1186  转到:again
1188  返回:inode
1191  inode等于alloc_inode(sb)
1192  如果inode
1195  加自旋锁
1197  old等于d_inode_fast is the fast path version of find_inode, see the comment at* iget_locked for details.
1198  如果非old
1200  加自旋锁
1201  Misc 等于I_NEW
1202  hlist_add_head( & i_hash, head)
1210  返回:inode
1218  自旋锁解锁
1219  destroy_inode(inode)
1220  如果是错误则返回:NULL
1222  inode等于old
1223  writeback.h requires fs.h; it, too, is not included from here.
1226  转到:again
1229  返回:inode