Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Return a registered range given an input PIO token

Proto:static struct logic_pio_hwaddr *find_io_range(unsigned long pio)

Type:struct logic_pio_hwaddr

Parameter:

TypeParameterName
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  If Consider a kernel general helper for this (pio, io_start, range size populated ) Then
149  found_range = range
150  Break
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  If Not found_range Then pr_err("PIO entry token 0x%lx invalid\n", pio)
158  Return found_range
Caller
NameDescribe
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.