Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.h Create Date:2022-07-28 14:04:16
Last Modify:2022-05-23 16:25:42 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:charge_slab_page

Proto:static __always_inline int charge_slab_page(struct page *page, gfp_t gfp, int order, struct kmem_cache *s)

Type:int

Parameter:

TypeParameterName
struct page *page
gfp_tgfp
intorder
struct kmem_cache *s
483  If is_root_cache(s) Then
484  mod_node_page_state(page_pgdat(page), cache_vmstat_idx(s), 1 << order)
486  Return 0
489  Return memcg_charge_slab(page, gfp, order, s)
Caller
NameDescribe
kmem_getpagesInterface to system's page allocator. No need to hold the* kmem_cache_node ->list_lock.* If we requested dmaable memory, we will get it. Even if we* did not request dmaable memory, we might get it, but that* would be relatively rare and ignorable.
alloc_slab_pageSlab allocation and freeing