Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\logic_pio.c Create Date:2022-07-28 06:16:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:logic_pio_trans_cpuaddr

Proto:unsigned long logic_pio_trans_cpuaddr(resource_size_t addr)

Type:unsigned long

Parameter:

TypeParameterName
resource_size_taddr
211  _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
213  If flags != LOGIC_PIO_CPU_MMIO Then Continue
215  If Consider a kernel general helper for this (addr, hw_start, range size populated ) Then
218  cpuaddr = addr - hw_start + io_start
220  _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()
221  Return cpuaddr
224  _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()
226  pr_err("addr %pa not registered in io_range_list\n", & addr)
228  Return ~0UL