函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\highmem.h Create Date:2022-07-27 06:45:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:zero_user_segments

函数原型:static inline void zero_user_segments(struct page *page, unsigned start1, unsigned end1, unsigned start2, unsigned end2)

返回类型:void

参数:

类型参数名称
struct page *page
unsignedstart1
unsignedend1
unsignedstart2
unsignedend2
222  kaddr等于kmap_atomic(page)
224  BUG_ON(end1 > PAGE_SIZE || end2 > PAGE_SIZE)
226  如果end1大于start1memset(kaddr + start1, 0, end1 - start1)
229  如果end2大于start2memset(kaddr + start2, 0, end2 - start2)
232  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.(kaddr)
233  flush_dcache_page(page)
调用者
名称描述
simple_write_begin
__block_write_begin_int
nobh_write_beginOn entry, the page is fully not uptodate.* On exit the page is fully uptodate in the areas outside (from,to)* The filesystem needs to handle block truncation upon failure.
__iomap_write_begin
zero_user_segment
zero_user