函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:返回内存动态地址

函数原型:phys_addr_t gen_pool_virt_to_phys(struct gen_pool *pool, unsigned long addr)

返回类型:phys_addr_t

参数:

类型参数名称
struct gen_pool *pool
unsigned longaddr
218  paddr等于负1
220  _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
222  如果addr大于等于start address of memory chunk addr小于等于d address of memory chunk (inclusive)
223  paddr等于physical starting address of memory chunk addrstart address of memory chunk
224  退出
227  _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()
229  返回:paddr
调用者
名称描述
gen_pool_dma_alloc_algogen_pool_dma_alloc_algo - allocate special memory from the pool for DMA* usage with the given pool algorithm*@pool: pool to allocate from*@size: number of bytes to allocate from the pool*@dma: DMA-view physical address return value