函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:d_inode_nowait - find an inode in the inode cache*@sb: super block of file system to search*@hashval: hash value (usually inode number) to search for*@match: callback used for comparisons between inodes*@data: opaque data pointer to pass to @match* Search

函数原型:struct inode *find_inode_nowait(struct super_block *sb, unsigned long hashval, int (*match)(struct inode *, unsigned long , void *), void *data)

返回类型:struct inode

参数:

类型参数名称
struct super_block *sb
unsigned longhashval
int (*match
void *data
1436  head等于inode_hashtablehash(sb, hashval)
1437  struct inode * inode, * ret_inode = NULL
1440  加自旋锁
1442  如果i_sb不等于sb则继续下一循环
1444  mval等于match(inode, hashval, data)
1445  如果mval恒等于0则继续下一循环
1447  如果mval恒等于1则ret_inode等于inode
1449  转到:out
1451  out :
1452  自旋锁解锁
1453  返回:ret_inode