函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\kasan\quarantine.c Create Date:2022-07-27 17:28:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Free all quarantined objects belonging to cache.

函数原型:void quarantine_remove_cache(struct kmem_cache *cache)

返回类型:void

参数:

类型参数名称
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 i小于QUARANTINE_BATCHES循环
316  如果qlist_empty( & Round-robin FIFO array of batches. [i])则继续下一循环
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
调用者
名称描述
kasan_cache_shutdown