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_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

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

Type:struct dentry

Parameter:

TypeParameterName
struct super_block *sb
struct fid *fid
intfh_len
intfh_type
struct inode *(*get_inode
965  struct inode * inode = NULL
967  If fh_len <= 2 Then Return NULL
971  Case fh_type == FILEID_INO32_GEN_PARENT
972  inode = get_inode(sb, parent_ino, (fh_len > 3 ? parent_gen : 0))
974  Break
977  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