函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:iomap_write_end_inline

函数原型:static int iomap_write_end_inline(struct inode *inode, struct page *page, struct iomap *iomap, loff_t pos, unsigned copied)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct page *page
struct iomap *iomap
loff_tpos
unsignedcopied
748  WARN_ON_ONCE(!PageUptodate(page))
749  BUG_ON(pos + copied > PAGE_SIZE - offset_in_page(inline_data))
751  addr等于kmap_atomic(page)
752  memcpy(inline_data + pos, addr + pos, copied)
753  Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(addr)
755  mark_inode_dirty(inode)
756  返回:copied
调用者
名称描述
iomap_write_end