Skip to content
Development
Skill

/linux-kernel-architecture

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

From plugin
low-level-dev-skills
300150 skills

Claude Code

$ npx -y skills add mohitmishra786/low-level-dev-skills --skill linux-kernel-architecture --agent claude-code

SKILL.md

linux-kernel-architecture.SKILL.md
name: linux-kernel-architecture
description: 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.

Linux Kernel Architecture

Purpose

Provide a mental map of the Linux kernel: boot sequence, major subsystems, key data structures, and where to look in source — complementing `skills/kernel/kernel-internals` with architecture-level navigation for driver and subsystem work.

Triggers

  • First time exploring `linux.git` for a feature or bug
  • Understanding how boot reaches `init` and driver `probe`
  • Tracing a syscall or interrupt through subsystems
  • Onboarding before `skills/kernel-dev/platform-device-model` or driver skills

Workflow

1. Boot flow (x86/ARM64 simplified)

firmware/UEFI
├── arch/*/boot — decompress kernel, early setup
├── start_kernel() — mm, scheduler, timers, IRQ subsys
├── rest_init() → kernel_init → run_init_process
└── userspace init (systemd)

Driver `module_init` / `device_initcall` run during `start_kernel` before init.

2. Major subsystems

| Subsystem | Path (typical) | Key structs | |-----------|----------------|-------------| | Scheduler | `kernel/sched/` | `task_struct`, `sched_entity` | | Memory | `mm/` | `struct page`, `mm_struct`, `vm_area_struct` | | VFS | `fs/` | `inode`, `dentry`, `file`, `super_block` | | Block | `block/` | `request_queue`, `gendisk` | | Net | `net/` | `sk_buff`, `net_device` | | Drivers | `drivers/` | `device`, `device_driver` | | Syscalls | `kernel/`, `fs/`, `mm/` | `SYSCALL_DEFINE*` |

3. Initcall levels

/* include/linux/init.h — order matters */
early_initcall → core_initcall → postcore_initcall
→ arch_initcall → subsys_initcall → fs_initcall
→ device_initcall → late_initcall

Platform drivers usually register at `subsys_initcall` or via `module_init`.

4. Finding code

# Locate symbol
grep -rn "platform_driver_register" drivers/

# Trace config
./scripts/config --state CONFIG_FOO

# File hierarchy docs
ls Documentation/admin-guide/

5. Agent usage

/linux-kernel-architecture Where does page fault handling live and what calls it?

Common Problems

| Symptom | Cause | Fix | |---------|-------|-----| | Driver probes too early | Initcall vs DT ordering | Defer with `deferred_probe` | | Symbol missing | Built as module | `modprobe` or built-in `CONFIG_*` | | Wrong subsystem | Similar names in `drivers/` | Follow `struct bus_type` | | Boot hang | Early printk disabled | `earlyprintk`, `initcall_debug` |

Related skills

  • `skills/kernel/kernel-internals` — scheduler, SLUB, VFS depth
  • `skills/kernel-dev/kernel-memory-management` — mm/ details
  • `skills/kernel-dev/platform-device-model` — driver model
  • `skills/kernel-dev/device-tree` — hardware description
  • `skills/low-level-programming/linux-kernel-modules` — LKM basics
Read more
@mohitmishra786
Ships withlow-level-dev-skills

A curated suite of AI agent skills for systems and low-level programming — C/C++, Rust, Zig, GPU, bare-metal firmware, Linux kernel/driver development, computer architecture, compiler internals, HPC, and more.

Stars on GitHub

Momentum

stars in total
300
Star history of mohitmishra786/low-level-dev-skills on GitHub, a chart by star-history.com

Other skills on low-level-dev-skills.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills3w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc3w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2w252k
@facebook@facebookInstall Skill

Questions about linux-kernel-architecture.

Which coding agents can use linux-kernel-architecture?
linux-kernel-architecture installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.