函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:gen_pool_has_addr - checks if an address falls within the range of a pool*@pool: the generic memory pool*@start: start address*@size: size of the region* Check if the range of addresses falls within the specified pool. Returns

函数原型:bool gen_pool_has_addr(struct gen_pool *pool, unsigned long start, size_t size)

返回类型:bool

参数:

类型参数名称
struct gen_pool *pool
unsigned longstart
size_tsize
554  bool found = false
555  end等于startsize减1
558  _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
560  如果start大于等于start address of memory chunk start小于等于d address of memory chunk (inclusive)
561  如果end小于等于d address of memory chunk (inclusive)
562  found = true
563  退出
567  _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()
568  返回:found