函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\kasan\init.c Create Date:2022-07-27 17:26:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:kasan_add_zero_shadow

函数原型:int kasan_add_zero_shadow(void *start, unsigned long size)

返回类型:int

参数:

类型参数名称
void *start
unsigned longsize
492  shadow_start等于kasan_mem_to_shadow(start)
493  shadow_end等于shadow_startsize右移KASAN_SHADOW_SCALE_SHIFT位的值
495  如果WARN_ON((unsignedlong)start % (KASAN_SHADOW_SCALE_SIZE * PAGE_SIZE))或WARN_ON(size % (KASAN_SHADOW_SCALE_SIZE * PAGE_SIZE))则返回:负EINVAL
500  ret等于kasan_populate_early_shadow - populate shadow memory region with* kasan_early_shadow_page*@shadow_start - start of the memory range to populate*@shadow_end - end of the memory range to populate
501  如果retkasan_remove_zero_shadow(shadow_start, size >> KASAN_SHADOW_SCALE_SHIFT)
504  返回:ret