Loading...
Loading...
Linux kernel architecture skill for subsystem overview. Use when navigating kernel source, understanding boot flow, initcalls, or major subsystems (VFS, scheduler, MM). Activates on queries about kernel architecture, boot process, initcall levels, subsystem layout, or where code lives in linux.git.
npx skill4agent add mohitmishra786/low-level-dev-skills linux-kernel-architectureskills/kernel/kernel-internalslinux.gitinitprobeskills/kernel-dev/platform-device-modelfirmware/UEFI
├── arch/*/boot — decompress kernel, early setup
├── start_kernel() — mm, scheduler, timers, IRQ subsys
├── rest_init() → kernel_init → run_init_process
└── userspace init (systemd)module_initdevice_initcallstart_kernel| Subsystem | Path (typical) | Key structs |
|---|---|---|
| Scheduler | | |
| Memory | | |
| VFS | | |
| Block | | |
| Net | | |
| Drivers | | |
| Syscalls | | |
/* include/linux/init.h — order matters */
early_initcall → core_initcall → postcore_initcall
→ arch_initcall → subsys_initcall → fs_initcall
→ device_initcall → late_initcallsubsys_initcallmodule_init# Locate symbol
grep -rn "platform_driver_register" drivers/
# Trace config
./scripts/config --state CONFIG_FOO
# File hierarchy docs
ls Documentation/admin-guide//linux-kernel-architecture Where does page fault handling live and what calls it?| Symptom | Cause | Fix |
|---|---|---|
| Driver probes too early | Initcall vs DT ordering | Defer with |
| Symbol missing | Built as module | |
| Wrong subsystem | Similar names in | Follow |
| Boot hang | Early printk disabled | |
skills/kernel/kernel-internalsskills/kernel-dev/kernel-memory-managementskills/kernel-dev/platform-device-modelskills/kernel-dev/device-treeskills/low-level-programming/linux-kernel-modules