Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:iomap_seek_hole

Proto:loff_t iomap_seek_hole(struct inode *inode, loff_t offset, const struct iomap_ops *ops)

Type:loff_t

Parameter:

TypeParameterName
struct inode *inode
loff_toffset
const struct iomap_ops *ops
142  size = NOTE: in a 32bit arch with a preemptable kernel and* an UP compile the i_size_read/write must be atomic* with respect to the local cpu (unlike with preempt disabled),* but they don't need to be atomic with respect to other cpus like in* true SMP (so they
143  length = size - offset
147  If offset < 0 || offset >= size Then Return -ENXIO
150  When length > 0 cycle
151  ret = Execute a iomap write on a segment of the mapping that spans a* contiguous range of pages that have identical block mapping state
153  If ret < 0 Then Return ret
155  If ret == 0 Then Break
158  offset += ret
159  length -= ret
162  Return offset