函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:iomap_dio_inline_actor

函数原型:static loff_t iomap_dio_inline_actor(struct inode *inode, loff_t pos, loff_t length, struct iomap_dio *dio, struct iomap *iomap)

返回类型:loff_t

参数:

类型参数名称
struct inode *inode
loff_tpos
loff_tlength
struct iomap_dio *dio
struct iomap *iomap
343  iter等于iter
346  BUG_ON(pos + length > PAGE_SIZE - offset_in_page(inline_data))
348  如果flags按位与IOMAP_DIO_WRITE
349  size等于i_size
351  如果pos大于sizememset(inline_data + size, 0, pos - size)
353  copied等于copy_from_iter(inline_data + pos, length, iter)
354  如果copied
359  否则
360  copied等于copy_to_iter(inline_data + pos, length, iter)
362  size加等于copied
363  返回:copied
调用者
名称描述
iomap_dio_actor