Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:q_find_matching_fwspec() - Locates a domain for a given fwspec*@fwspec: FW specifier for an interrupt*@bus_token: domain-specific data

Proto:struct irq_domain *irq_find_matching_fwspec(struct irq_fwspec *fwspec, enum irq_domain_bus_token bus_token)

Type:struct irq_domain

Parameter:

TypeParameterName
struct irq_fwspec *fwspec
enum irq_domain_bus_tokenbus_token
387  struct irq_domain * h, * found = NULL
388  fwnode = fwnode
400  mutex_lock( & irq_domain_mutex)
402  If select && param_count Then rc = select(h, fwspec, bus_token)
404  Else if match Then rc = match(h, to_of_node(fwnode), bus_token)
406  Else rc = ((fwnode != NULL) && ( Optional data == fwnode) && ((bus_token == DOMAIN_BUS_ANY) || (bus_token == bus_token)))
411  If rc Then
412  found = h
413  Break
416  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
417  Return found
Caller
NameDescribe
irq_create_fwspec_mapping