函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:check_poison_mem

函数原型:static void check_poison_mem(unsigned char *mem, size_t bytes)

返回类型:void

参数:

类型参数名称
unsigned char *mem
size_tbytes
68  DEFINE_RATELIMIT_STATE(ratelimit, 5 * HZ, 10)
72  如果IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_PAGE_POISONING_NO_SANITY)则返回
75  start等于memchr_inv - Find an unmatching character in an area of memory.*@start: The memory area*@c: Find a character other than c*@bytes: The size of the area.* returns the address of the first character other than @c, or %NULL
76  如果非start则返回
79 end大于start循环
80  如果end不等于PAGE_POISON退出
84  如果非__ratelimit( & ratelimit)则返回
86  否则如果start恒等于endsingle_bit_flip( * start, PAGE_POISON)则打印错误信息("pagealloc: single bit error\n")
88  否则打印错误信息("pagealloc: memory corruption\n")
91  print_hex_dump - print a text hex dump to syslog for a binary blob of data*@level: kernel log level (e
93  dump_stack()
调用者
名称描述
unpoison_page