late_initcall
时间: 2024-01-06 15:04:32 浏览: 60
Linux-Insight:Linux内核源码认知层,承上启下的分析
Late_initcall is a type of initialization function used in the Linux kernel. It is similar to the initcall function, but is executed later in the boot process, after the majority of the system has been initialized. This allows modules and drivers to be loaded later in the boot process, which can be useful for certain use cases.
Late_initcall functions are defined using the LATE_INITCALL macro, which takes a single function name as an argument. These functions are registered with the kernel and executed in the order in which they are registered.
Some examples of use cases for late_initcall functions include loading modules or drivers that depend on other system components that are initialized late in the boot process, or performing actions that need to wait until other system initialization tasks are complete.
阅读全文