Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\ksm.c Create Date:2022-07-28 15:40:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:calc_checksum

Proto:static unsigned int calc_checksum(struct page *page)

Type:unsigned int

Parameter:

TypeParameterName
struct page *page
1026  addr = kmap_atomic(page)
1027  checksum = xxhash() - calculate wordsize hash of the input with a given seed*@input: The data to hash
1028  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)
1029  Return checksum
Caller
NameDescribe
cmp_and_merge_pagemp_and_merge_page - first see if page can be merged into the stable tree;* if not, compare checksum to previous and if it's the same, see if page can* be inserted into the unstable tree, or merged with a page already there and
ksm_init