Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:drain_cpu_caches

Proto:static void drain_cpu_caches(struct kmem_cache *cachep)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *cachep
2207  LIST_HEAD(list)
2209  Call a function on all processors. May be used during early boot while* early_boot_irqs_disabled is set. Use local_irq_save/restore() instead* of local_irq_disable/enable().
2210  check_irq_on()
2211  for_each_kmem_cache_node(cachep, node, n)
2212  If alien Then drain_alien_cache(cachep, alien)
2216  spin_lock_irq( & list_lock)
2217  drain_array_locked(cachep, shared, node, true, & list)
2218  spin_unlock_irq( & list_lock)
2220  slabs_destroy(cachep, & list)
Caller
NameDescribe
__kmem_cache_shrink