Tagged articles
3 articles
Page 1 of 1
Deepin Linux
Deepin Linux
Jan 2, 2025 · Fundamentals

Understanding the Linux Kernel Initcall Mechanism for Driver Initialization

The article explains how the Linux kernel’s initcall mechanism automatically orders and executes driver initialization functions through specially defined macros and linker sections, improving maintainability, memory usage, and system stability during the boot process.

CDriver InitializationInitcall
0 likes · 23 min read
Understanding the Linux Kernel Initcall Mechanism for Driver Initialization
Liangxu Linux
Liangxu Linux
Sep 17, 2024 · Fundamentals

Unlocking Automatic Module Initialization with Linux Kernel Initcall on STM32

This guide explains how to replicate Linux kernel's initcall mechanism in STM32 projects by using function‑pointer sections, modifying the linker script, and defining ordered initialization macros to replace sequential main‑function calls, enabling modular and loosely‑coupled code execution.

CInitcallLinux kernel
0 likes · 8 min read
Unlocking Automatic Module Initialization with Linux Kernel Initcall on STM32
Liangxu Linux
Liangxu Linux
Jan 25, 2021 · Fundamentals

How Linux Kernel Invokes Module Init Functions via fs_initcall

The article explains how the Linux kernel discovers and calls module initialization functions like inet_init by using the fs_initcall macro, which creates static initcall variables placed in specially‑named sections that the linker groups and the kernel iterates at boot time.

CInitcallKernel
0 likes · 8 min read
How Linux Kernel Invokes Module Init Functions via fs_initcall