函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-27 17:18:45
Last Modify:2022-05-23 17:02:55 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Map pages beginning at addr to the given cache and slab. This is required* for the slab allocator to be able to lookup the cache and slab of a* virtual address for kfree, ksize, and slab debugging.

函数原型:static void slab_map_pages(struct kmem_cache *cache, struct page *page, void *freelist)

返回类型:void

参数:

类型参数名称
struct kmem_cache *cache
struct page *page
void *freelist
2608  用于SLUB分配器,指向slab的指针等于cache
2609  first free object 等于freelist
调用者
名称描述
cache_grow_beginGrow (by 1) the number of slabs within a cache. This is called by* kmem_cache_alloc() when there are no active objs left in a cache.