函数逻辑报告

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_parent - generic helper for the fh_to_parent 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_parent(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
965  struct inode * inode = NULL
967  如果fh_len小于等于2则返回:NULL
971  :fh_type恒等于FILEID_INO32_GEN_PARENT
972  inode等于get_inode(sb, parent_ino, (fh_len > 3 ? parent_gen : 0))
974  退出
977  返回: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