函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:struct irq_domain *irq_find_matching_fwspec(struct irq_fwspec *fwspec, enum irq_domain_bus_token bus_token)

返回类型:struct irq_domain

参数:

类型参数名称
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  如果selectparam_countrc等于select(h, fwspec, bus_token)
404  否则如果matchrc等于match(h, to_of_node(fwnode), bus_token)
406  否则rc = ((fwnode != NULL) && ( Optional data == fwnode) && ((bus_token == DOMAIN_BUS_ANY) || (bus_token == bus_token)))
411  如果rc
412  found等于h
413  退出
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  返回:found
调用者
名称描述
irq_create_fwspec_mapping