Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\verity\verify.c Create Date:2022-07-28 20:24:57
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Extract a hash from a hash page

Proto:static void extract_hash(struct page *hpage, unsigned int hoffset, unsigned int hsize, u8 *out)

Type:void

Parameter:

TypeParameterName
struct page *hpage
unsigned inthoffset
unsigned inthsize
u8 *out
46  virt = kmap_atomic(hpage)
48  memcpy(out, virt + hoffset, hsize)
49  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.(virt)
Caller
NameDescribe
verify_pageVerify a single data page against the file's Merkle tree