函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:make_alloc_exact

函数原型:static void *make_alloc_exact(unsigned long addr, unsigned int order, size_t size)

返回类型:void

参数:

类型参数名称
unsigned longaddr
unsigned intorder
size_tsize
4923  如果addr
4924  alloc_end等于addrPAGE_SIZE左移order位的值
4925  used等于addr align the pointer to the (next) page boundary (size)
4927  split_page takes a non-compound higher-order page, and splits it into* n (1<
4928 used小于alloc_end循环
4929  free_page(used)
4930  used加等于PAGE_SIZE
4933  返回:addr
调用者
名称描述
alloc_pages_exactalloc_pages_exact - allocate an exact number physically-contiguous pages.*@size: the number of bytes to allocate*@gfp_mask: GFP flags for the allocation, must not contain __GFP_COMP* This function is similar to alloc_pages(), except that it allocates the
alloc_pages_exact_nidalloc_pages_exact_nid - allocate an exact number of physically-contiguous* pages on a node