函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:simple_write_begin

函数原型:int simple_write_begin(struct file *file, struct address_space *mapping, loff_t pos, unsigned len, unsigned flags, struct page **pagep, void **fsdata)

返回类型:int

参数:

类型参数名称
struct file *file
struct address_space *mapping
loff_tpos
unsignedlen
unsignedflags
struct page **pagep
void **fsdata
457  index等于pos右移PAGE_SHIFT determines the page size
459  page等于Find or create a page at the given pagecache position. Return the locked* page. This function is specifically for buffered writes.
460  如果非page则返回:负ENOMEM
463  pagep等于page
465  如果非PageUptodate(page)且len不等于PAGE_SIZE
466  from等于pos按位与PAGE_SIZE减1
468  zero_user_segments(page, 0, from, from + len, PAGE_SIZE)
470  返回:0