函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:获得内存池的可用空间

函数原型:size_t gen_pool_avail(struct gen_pool *pool)

返回类型:size_t

参数:

类型参数名称
struct gen_pool *pool
581  avail等于0
583  _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
584  遍历RCU(chunk, & list of chunks in this pool , next_chunk)
585  avail加等于atomic_long_read( & avail)
586  _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()
587  返回:avail