Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Free all quarantined objects belonging to cache.

Proto:void quarantine_remove_cache(struct kmem_cache *cache)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *cache
303  to_free = QLIST_INIT
312  on_each_cpu(per_cpu_remove_cache, cache, 1)
314  raw_spin_lock_irqsave( & quarantine_lock, flags)
315  When i < QUARANTINE_BATCHES cycle
316  If qlist_empty( & Round-robin FIFO array of batches. [i]) Then Continue
318  qlist_move_cache( & Round-robin FIFO array of batches. [i], & to_free, cache)
320  raw_spin_unlock_irqrestore( & quarantine_lock, flags)
321  cond_resched()
322  raw_spin_lock_irqsave( & quarantine_lock, flags)
324  raw_spin_unlock_irqrestore( & quarantine_lock, flags)
326  qlist_free_all( & to_free, cache)
328  synchronize_srcu - wait for prior SRCU read-side critical-section completion
Caller
NameDescribe
kasan_cache_shutdown