Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slob.c Create Date:2022-07-28 15:36:24
Last Modify:2022-05-20 09:26:42 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:slob_alloc_node

Proto:static void *slob_alloc_node(struct kmem_cache *c, gfp_t flags, int node)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *c
gfp_tflags
intnode
596  flags &= gfp_allowed_mask
598  fs_reclaim_acquire(flags)
599  fs_reclaim_release(flags)
601  If The size of an object including metadata < PAGE_SIZE Then
602  b = slob_alloc: entry point into the slob allocator.
603  trace_kmem_cache_alloc_node(_RET_IP_, b, The size of an object without metadata , SLOB_UNITS(The size of an object including metadata ) * SLOB_UNIT, flags, node)
606  Else
607  b = slob_new_pages(flags, get_order - Determine the allocation order of a memory size*@size: The size for which to get the order* Determine the allocation order of a particular sized block of memory, node)
608  trace_kmem_cache_alloc_node(_RET_IP_, b, The size of an object without metadata , PAGE_SIZE << get_order - Determine the allocation order of a memory size*@size: The size for which to get the order* Determine the allocation order of a particular sized block of memory, flags, node)
613  If b && ctor Then
614  WARN_ON_ONCE(flags & __GFP_ZERO)
615  ctor(b)
618  kmemleak_alloc_recursive(b, The size of an object including metadata , 1, Used for retrieving partial slabs, etc. , flags)
619  Return b
Caller
NameDescribe
kmem_cache_alloc
kmem_cache_alloc_node