Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_meminit.c Create Date:2022-07-28 06:37:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:do_alloc_pages_order

Proto:static int __init do_alloc_pages_order(int order, int *total_failures)

Type:int

Parameter:

TypeParameterName
intorder
int *total_failures
67  size = PAGE_SIZE << order
69  page = alloc_pages(GFP_KERNEL, order)
70  buf = page_address(page)
71  fill_with_garbage(buf, size)
72  __free_pages(page, order)
74  page = alloc_pages(GFP_KERNEL, order)
75  buf = page_address(page)
76  If Calculate the number of uninitialized bytes in the buffer. Then total_failures++
78  fill_with_garbage(buf, size)
79  __free_pages(page, order)
80  Return 1
Caller
NameDescribe
test_pagesTest the page allocator by calling alloc_pages with different orders.