Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:poison_page

Proto:static void poison_page(struct page *page)

Type:void

Parameter:

TypeParameterName
struct page *page
42  addr = kmap_atomic(page)
45  Disable reporting bugs for current task
46  memset(addr, PAGE_POISON, PAGE_SIZE)
47  Enable reporting bugs after kasan_disable_current()
48  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)
Caller
NameDescribe
poison_pages