函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:外部中断描述初始化

函数原型:int __init early_irq_init(void)

返回类型:int

参数:

560  node等于first_online_node
563  init_irq_default_affinity()
565  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
567  desc等于irq_desc
568  count等于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(irq_desc)
570 i小于count循环
571  cpu中断统计等于alloc_percpu(unsignedint)
572  alloc_masks( & desc[i], node)
573  raw_spin_lock_init( & 自旋锁)
574  lockdep_set_class( & 自旋锁, & lockdep: we want to handle all irq_desc locks as a single lock-class:)
575  mutex_init - initialize the mutex*@mutex: the mutex to be initialized* Initialize the mutex to unlocked state.* It is not allowed to initialize an already locked mutex.( & request_mutex)
576  desc_set_defaults(i, & desc[i], node, NULL, NULL)
578  返回:arch_early_irq_init()