Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:alloc_kmem_cache_cpus

Proto:static struct array_cache __percpu *alloc_kmem_cache_cpus(struct kmem_cache *cachep, int entries, int batchcount)

Type:struct array_cache

Parameter:

TypeParameterName
struct kmem_cache *cachep
intentries
intbatchcount
1775  __percpu * cpu_cache
1777  size = size of * * entries + sizeof(structarray_cache)
1778  cpu_cache = allocate one copy of the object for every present
1780  If Not cpu_cache Then Return NULL
1783  for_each_possible_cpu(cpu)
1784  init_arraycache(per_cpu_ptr(cpu_cache, cpu), entries, batchcount)
1788  Return cpu_cache
Caller
NameDescribe
setup_cpu_cache
__do_tune_cpucacheAlways called with the slab_mutex held