Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:put_cpu_partial

Proto:static void put_cpu_partial(struct kmem_cache *s, struct page *page, int drain)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *s
struct page *page
intdrain

NULL

Caller
NameDescribe
get_partial_nodeTry to allocate a partial slab from a specific node.
__slab_freeSlow path handling. This may still be called frequently since objects* have a longer lifetime than the cpu slabs in most processing loads.* So we still attempt to reduce cache line usage. Just take the slab* lock and free the item