Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\gfp.h Create Date:2022-07-28 05:37:55
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:alloc_pages

Proto:static inline struct page *alloc_pages(gfp_t gfp_mask, unsigned int order)

Type:struct page

Parameter:

TypeParameterName
gfp_tgfp_mask
unsigned intorder
532  Return 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.
Caller
NameDescribe
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