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_data

Proto:loff_t iomap_seek_data(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
188  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
189  length = size - offset
193  If offset < 0 || offset >= size Then Return -ENXIO
196  When length > 0 cycle
197  ret = Execute a iomap write on a segment of the mapping that spans a* contiguous range of pages that have identical block mapping state
199  If ret < 0 Then Return ret
201  If ret == 0 Then Break
204  offset += ret
205  length -= ret
208  If length <= 0 Then Return -ENXIO
210  Return offset