函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Extract a hash from a hash page

函数原型:static void extract_hash(struct page *hpage, unsigned int hoffset, unsigned int hsize, u8 *out)

返回类型:void

参数:

类型参数名称
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)
调用者
名称描述
verify_pageVerify a single data page against the file's Merkle tree