函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do_alloc_pages_order

函数原型:static int __init do_alloc_pages_order(int order, int *total_failures)

返回类型:int

参数:

类型参数名称
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  如果Calculate the number of uninitialized bytes in the buffer. total_failures自加
78  fill_with_garbage(buf, size)
79  __free_pages(page, order)
80  返回:1
调用者
名称描述
test_pagesTest the page allocator by calling alloc_pages with different orders.