函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\iomap\seek.c Create Date:2022-07-29 11:08:02
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:iomap_seek_data

函数原型:loff_t iomap_seek_data(struct inode *inode, loff_t offset, const struct iomap_ops *ops)

返回类型:loff_t

参数:

类型参数名称
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等于sizeoffset
193  如果offset小于0或offset大于等于size则返回:负ENXIO
196 length大于0循环
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  如果ret小于0则返回:ret
201  如果ret恒等于0则退出
204  offset加等于ret
205  length减等于ret
208  如果length小于等于0则返回:负ENXIO
210  返回:offset