Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\highmem.h Create Date:2022-07-28 05:44:54
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:zero_user_segments

Proto:static inline void zero_user_segments(struct page *page, unsigned start1, unsigned end1, unsigned start2, unsigned end2)

Type:void

Parameter:

TypeParameterName
struct page *page
unsignedstart1
unsignedend1
unsignedstart2
unsignedend2
222  kaddr = kmap_atomic(page)
224  BUG_ON(end1 > PAGE_SIZE || end2 > PAGE_SIZE)
226  If end1 > start1 Then memset(kaddr + start1, 0, end1 - start1)
229  If end2 > start2 Then memset(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)
Caller
NameDescribe
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