Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slub.c Create Date:2022-07-28 15:47:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Management of partially allocated slabs.

Proto:static inline void __add_partial(struct kmem_cache_node *n, struct page *page, int tail)

Type:void

Parameter:

TypeParameterName
struct kmem_cache_node *n
struct page *page
inttail
1762  nr_partial++
1763  If tail == Cpu slab was moved to the tail of partials Then list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
1765  Else list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
Caller
NameDescribe
add_partial
early_kmem_cache_node_allocNo kmalloc_node yet so do it by hand. We know that this is the first* slab on the node for this slabcache. There are no concurrent accesses* possible.* Note that this function only works on the kmem_cache_node* when allocating for the kmem_cache_node