函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\libfs.c Create Date:2022-07-29 10:41:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:generic_fh_to_dentry - generic helper for the fh_to_dentry export operation*@sb: filesystem to do the file handle conversion on*@fid: file handle to convert*@fh_len: length of the file handle in bytes*@fh_type: type of file handle*@get_inode: filesystem

函数原型:struct dentry *generic_fh_to_dentry(struct super_block *sb, struct fid *fid, int fh_len, int fh_type, struct inode *(*get_inode)(struct super_block *sb, u64 ino, unsigned int gen))

返回类型:struct dentry

参数:

类型参数名称
struct super_block *sb
struct fid *fid
intfh_len
intfh_type
struct inode *(*get_inode
932  struct inode * inode = NULL
934  如果fh_len小于2则返回:NULL
938  :fh_type恒等于FILEID_INO32_GEN
939  :fh_type恒等于FILEID_INO32_GEN_PARENT
940  inode等于get_inode(sb, ino, gen)
941  退出
944  返回:d_obtain_alias - find or allocate a DISCONNECTED dentry for a given inode*@inode: inode to allocate the dentry for* Obtain a dentry for an inode resulting from NFS filehandle conversion or* similar open by handle operations