Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:early_irq_init

Proto:int __init early_irq_init(void)

Type:int

Parameter:Nothing

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  When i < count cycle
571  kstat_irqs = alloc_percpu(unsignedint)
572  alloc_masks( & desc[i], node)
573  raw_spin_lock_init( & lock)
574  lockdep_set_class( & lock, & 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  Return arch_early_irq_init()