Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__zswap_pool_empty

Proto:static void __zswap_pool_empty(struct kref *kref)

Type:void

Parameter:

TypeParameterName
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  spin_lock( & protects zswap_pools list modification )
646  WARN_ON(pool == zswap_pool_current())
648  list_del_rcu - deletes entry from list without re-initialization*@entry: the element to delete from the list
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  spin_unlock( & protects zswap_pools list modification )