Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:fiemap_fill_next_extent

Proto:int fiemap_fill_next_extent(struct fiemap_extent_info *fieinfo, u64 logical, u64 phys, u64 len, unsigned int flags)

Type:int

Parameter:

TypeParameterName
struct fiemap_extent_info *fieinfo
u64logical
u64phys
u64len
unsigned intflags
94  __user * dest = Start offiemap_extent array
97  If Size of fiemap_extent array == 0 Then
98  Number of mapped extents ++
99  Return If flags & Last extent in file. Then 1 Else 0
102  If Number of mapped extents >= Size of fiemap_extent array Then Return 1
105  If flags & map_fill_next_extent - Fiemap helper function*@fieinfo: Fiemap context passed into ->fiemap*@logical: Extent logical start offset, in bytes*@phys: Extent physical start offset, in bytes*@len: Extent length, in bytes*@flags: FIEMAP_EXTENT flags that Then flags |= Data location unknown.
107  If flags & SET_NO_UNMOUNTED_IO_FLAGS Then flags |= Data can not be read* while fs is unmounted
109  If flags & SET_NOT_ALIGNED_FLAGS Then flags |= Extent offsets may not be* block aligned.
112  memset( & extent, 0, size of extent )
113  logical offset in bytes for the start of * the extent from the beginning of the file = logical
114  physical offset in bytes for the start * of the extent from the beginning of the disk = phys
115  length in bytes for this extent = len
116  FIEMAP_EXTENT_* flags for this extent = flags
118  dest += Number of mapped extents
119  If copy_to_user(dest, & extent, size of extent ) Then Return -EFAULT
122  Number of mapped extents ++
123  If Number of mapped extents == Size of fiemap_extent array Then Return 1
125  Return If flags & Last extent in file. Then 1 Else 0
Caller
NameDescribe
__generic_block_fiemap__generic_block_fiemap - FIEMAP for block based inodes (no locking)*@inode: the inode to map*@fieinfo: the fiemap info struct that will be passed back to userspace*@start: where to start mapping in the inode*@len: how much space to map*@get_block: the
iomap_to_fiemap