Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-28 15:45:18
Last Modify:2022-05-23 17:02:55 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Try allocating on another node if PFA_SPREAD_SLAB is a mempolicy is set.* If we are in_interrupt, then process context, including cpusets and* mempolicy, may not apply and should not be used for allocation policy.

Proto:static void *alternate_node_alloc(struct kmem_cache *cachep, gfp_t flags)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *cachep
gfp_tflags
3132  If in_interrupt() || flags & __GFP_THISNODE Then Return NULL
3134  nid_alloc = nid_here = Returns the number of the nearest Node with memory
3135  If cpuset_do_slab_mem_spread() && Used for retrieving partial slabs, etc. & Spread some memory over cpuset Then nid_alloc = cpuset_slab_spread_node()
3137  Else if mempolicy Then nid_alloc = Depending on the memory policy provide a node from which to allocate the* next slab entry.
3139  If nid_alloc != nid_here Then Return A interface to enable slab creation on nodeid
3141  Return NULL
Caller
NameDescribe
__do_cache_alloc