函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__zswap_pool_empty

函数原型:static void __zswap_pool_empty(struct kref *kref)

返回类型:void

参数:

类型参数名称
struct kref *kref
642  pool等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(kref, typeof( * pool), kref)
644  加自旋锁
646  WARN_ON(pool == zswap_pool_current())
648  删除不需要重新初始化的列表项
650  INIT_WORK( & work, __zswap_pool_release)
651  schedule_work - put work task in global workqueue*@work: job to be done* Returns %false if @work was already on the kernel-global workqueue and* %true otherwise
653  自旋锁解锁