函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:iomap_page_create

函数原型:static struct iomap_page *iomap_page_create(struct inode *inode, struct page *page)

返回类型:struct iomap_page

参数:

类型参数名称
struct inode *inode
struct page *page
47  iop等于to_iomap_page(page)
49  如果iopi_blocksize(inode)恒等于PAGE_SIZE则返回:iop
52  iop等于开辟内存
53  atomic_set( & read_count, 0)
54  atomic_set( & write_count, 0)
55  spin_lock_init( & uptodate_lock)
56  bitmap_zero(uptodate, PAGE_SIZE / SECTOR_SIZE)
62  get_page(page)
63  set_page_private(page, (unsignedlong)iop)
64  Private page markings that may be used by the filesystem that owns the page* for its own purposes.* - PG_private and PG_private_2 cause releasepage() and co to be invoked
65  返回:iop
调用者
名称描述
iomap_readpage_actor
__iomap_write_begin
iomap_page_mkwrite_actor