函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\gfp.h Create Date:2022-07-27 06:40:31
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:alloc_pages

函数原型:static inline struct page *alloc_pages(gfp_t gfp_mask, unsigned int order)

返回类型:struct page

参数:

类型参数名称
gfp_tgfp_mask
unsigned intorder
532  返回:alloc_pages_current - Allocate pages.*@gfp:* %GFP_USER user allocation,* %GFP_KERNEL kernel allocation,* %GFP_HIGHMEM highmem allocation,* %GFP_FS don't call back into a file system.* %GFP_ATOMIC don't sleep.
调用者
名称描述
do_alloc_pages_order
stack_depot_savestack_depot_save - Save a stack trace from an array*@entries: Pointer to storage array*@nr_entries: Size of the storage array*@alloc_flags: Allocation gfp flags* Return: The handle of the stack struct stored in depot
kvmclock_init_mem
kimage_alloc_pages
__page_cache_alloc
mempool_alloc_pagesA simple mempool-backed page allocator that allocates pages* of the order specified by pool_data.
kmalloc_orderTo avoid unnecessary overhead, we pass through large allocation requests* directly to the page allocator. We use __GFP_COMP, because we will need to* know the allocation order to free the pages properly in kfree.
__get_free_pagesCommon helper functions. Never use with __GFP_HIGHMEM because the returned* address cannot represent highmem pages. Use alloc_pages and then kmap if* you need to access high mem.
slob_new_pages
alloc_slab_pageSlab allocation and freeing
get_huge_zero_page
ramfs_nommu_expand_for_mappingadd a contiguous set of pages into a ramfs inode when it's truncated from* size 0 on the assumption that it's going to be used for an mmap of shared* memory