函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slub.c Create Date:2022-07-27 17:21:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Slab allocation and freeing

函数原型:static inline struct page *alloc_slab_page(struct kmem_cache *s, gfp_t flags, int node, struct kmem_cache_order_objects oo)

返回类型:struct page

参数:

类型参数名称
struct kmem_cache *s
gfp_tflags
intnode
struct kmem_cache_order_objectsoo
1493  order等于oo_order(oo)
1495  如果node恒等于NUMA_NO_NODEpage等于alloc_pages(flags, order)
1497  否则page等于Allocate pages, preferring the node given as nid. The node must be valid and* online. For more general interface, see alloc_pages_node().
1500  如果pagecharge_slab_page(page, flags, order, s)则
1501  __free_pages(page, order)
1502  page = NULL
1505  返回:page
调用者
名称描述
allocate_slab