Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\libfs.c Create Date:2022-07-28 20:10:26
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto: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))

Type:struct dentry

Parameter:

TypeParameterName
struct super_block *sb
struct fid *fid
intfh_len
intfh_type
struct inode *(*get_inode
932  struct inode * inode = NULL
934  If fh_len < 2 Then Return NULL
938  Case fh_type == FILEID_INO32_GEN
939  Case fh_type == FILEID_INO32_GEN_PARENT
940  inode = get_inode(sb, ino, gen)
941  Break
944  Return 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