函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:qlist_move_cache

函数原型:static void qlist_move_cache(struct qlist_head *from, struct qlist_head *to, struct kmem_cache *cache)

返回类型:void

参数:

类型参数名称
struct qlist_head *from
struct qlist_head *to
struct kmem_cache *cache
270  如果此条件成立可能性小(为编译器优化)(qlist_empty(from))则返回
273  curr等于head
274  qlist_init(from)
275 curr循环
276  next等于next
277  obj_cache等于qlink_to_cache(curr)
279  如果obj_cache恒等于cacheqlist_put(to, curr, The size of an object including metadata )
281  否则qlist_put(from, curr, The size of an object including metadata )
284  curr等于next
调用者
名称描述
per_cpu_remove_cache
quarantine_remove_cacheFree all quarantined objects belonging to cache.