Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:zswap_pool_last_get

Proto:static struct zswap_pool *zswap_pool_last_get(void)

Type:struct zswap_pool

Parameter:Nothing

467  struct zswap_pool * pool, * last = NULL
469  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
471  list_for_each_entry_rcu - iterate over rcu list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(pool, & RCU-protected iteration , list)
472  last = pool
473  WARN_ONCE(!last && it completed, but couldn't create the initial pool , "%s: no page storage pool!\n", __func__)
475  If Not zswap_pool_get(last) Then last = NULL
478  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
480  Return last
Caller
NameDescribe
zswap_shrink