函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.h Create Date:2022-07-27 15:27:19
Last Modify:2022-05-23 16:25:42 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:charge_slab_page

函数原型:static __always_inline int charge_slab_page(struct page *page, gfp_t gfp, int order, struct kmem_cache *s)

返回类型:int

参数:

类型参数名称
struct page *page
gfp_tgfp
intorder
struct kmem_cache *s
483  如果is_root_cache(s)则
484  mod_node_page_state(page_pgdat(page), cache_vmstat_idx(s), 1 << order)
486  返回:0
489  返回:memcg_charge_slab(page, gfp, order, s)
调用者
名称描述
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