函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Return a registered range given an input PIO token

函数原型:static struct logic_pio_hwaddr *find_io_range(unsigned long pio)

返回类型:struct logic_pio_hwaddr

参数:

类型参数名称
unsigned longpio
144  struct logic_pio_hwaddr * range, * found_range = NULL
146  _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
148  如果Consider a kernel general helper for this (pio, io_start, range size populated )则
149  found_range等于range
150  退出
153  _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()
155  如果非found_range打印错误信息("PIO entry token 0x%lx invalid\n", pio)
158  返回:found_range
调用者
名称描述
logic_pio_to_hwaddrlogic_pio_to_hwaddr - translate logical PIO to HW address*@pio: logical PIO value* Returns HW address if valid, ~0 otherwise.* Translate the input logical PIO to the corresponding hardware address.