Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Get a page from somewhere. Search in increasing NUMA distances.

Proto:static void *get_any_partial(struct kmem_cache *s, gfp_t flags, struct kmem_cache_cpu *c)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *s
gfp_tflags
struct kmem_cache_cpu *c
1892  high_zoneidx = gfp_zone(flags)
1914  If Not Defragmentation by allocating from a remote node. || get_cycles() % 1024 > Defragmentation by allocating from a remote node. Then Return NULL
1918  Do
1919  cpuset_mems_cookie = read_mems_allowed_begin()
1920  zonelist = We get the zone list from the current node and the gfp_mask.* This zone list contains a maximum of MAXNODES*MAX_NR_ZONES zones.* There are two zonelists per node, one for all zones with memory and
1924  n = get_node(s, zone_to_nid(zone))
1941  When read_mems_allowed_retry(cpuset_mems_cookie) cycle
1943  Return NULL
Caller
NameDescribe
get_partialGet a partial page, lock it and return it.