Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:q_find_mapping() - Find a linux irq from a hw irq number.*@domain: domain owning this hardware interrupt*@hwirq: hardware irq number in that domain space

Proto:unsigned int irq_find_mapping(struct irq_domain *domain, irq_hw_number_t hwirq)

Type:unsigned int

Parameter:

TypeParameterName
struct irq_domain *domain
irq_hw_number_thwirq
899  If (domain == NULL) Then domain = irq_default_domain
901  If (domain == NULL) Then Return 0
904  If hwirq < revmap_direct_max_irq Then
905  data = q_domain_get_irq_data - Get irq_data associated with @virq and @domain*@domain: domain to match*@virq: IRQ number to get irq_data
906  If data && hwirq == hwirq Then Return hwirq
911  If hwirq < revmap_size Then Return linear_revmap[hwirq]
914  _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
915  data = adix_tree_lookup - perform lookup operation on a radix tree*@root: radix tree root*@index: index key* Lookup the item at the position @index in the radix tree @root.* This function can be called under rcu_read_lock, however the caller
916  _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()
917  Return If data Then irq Else 0
Caller
NameDescribe
mp_map_pin_to_irq
mp_irqdomain_alloc
irq_gc_get_irq_data
irq_create_mappingq_create_mapping() - Map a hardware interrupt into linux irq space*@domain: domain owning this hardware interrupt or NULL for default domain*@hwirq: hardware irq number in that domain space* Only one mapping per hardware interrupt is permitted
irq_create_fwspec_mapping