函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cache_grow_end

函数原型:static void cache_grow_end(struct kmem_cache *cachep, struct page *page)

返回类型:void

参数:

类型参数名称
struct kmem_cache *cachep
struct page *page
2699  void * list = NULL
2701  check_irq_off()
2703  如果非page则返回
2706  初始化链表头
2707  n等于get_node(cachep, page_to_nid(page))
2709  加自旋锁
2710  total_slabs自加
2711  如果非 SLAB
2712  添加链表项
2713  free_slabs自加
2714  否则fixup_slab_list(cachep, n, page, & list)
2717  STATS_INC_GROWN(cachep)
2718  free_objects加等于num SLAB
2719  自旋锁解锁
2721  fixup_objfreelist_debug(cachep, & list)
调用者
名称描述
cache_alloc_refill
fallback_allocFallback function if there was no memory available and no objects on a* certain node and fall back is permitted. First we scan all the* available node for available objects. If that fails then we* perform an allocation without specifying a node
____cache_alloc_nodeA interface to enable slab creation on nodeid