# soumya-dev-nayak/kernel-module-development-on-wsl2 architecture

> Architecture diagram of the GitHub repository soumya-dev-nayak/kernel-module-development-on-wsl2, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/soumya-dev-nayak/kernel-module-development-on-wsl2
- Repository: https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2

## Overview

This repository is a WSL2 kernel-module development guide accompanied by a minimal “Hello World” module. The principal workflow takes a developer from setting up WSL2 through preparing and building a matching custom kernel, then building and loading an out-of-tree module. The README explicitly documents the kernel-source preparation stages and the overall workflow; the excerpt ends during the kernel-image section, so later-stage details are limited to its introductory summary. The PDFs are present but their contents were not sampled.

Main entry points: [`README.md`](https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/README.md) (Build external module), [`hello.c`](https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/hello.c) (Hello module)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_guide["Development guide"]
  node_readme["Practical guide<br/>[README.md]"]
  node_kernelpdf["Kernel build guide PDF"]
  node_modulepdf["Module development PDF"]
end

subgraph group_kernel["Kernel setup"]
  node_setup["Install WSL2 tools<br/>[README.md]"]
  node_source["Get WSL2 source<br/>[README.md]"]
  node_config["Configure kernel tree<br/>[README.md]"]
  node_prepare["Prepare module tree<br/>[README.md]"]
  node_symbols["Build symbol table<br/>[README.md]"]
  node_image["Build kernel image<br/>[README.md]"]
  node_boot["Boot custom kernel<br/>[README.md]"]
end

subgraph group_module["Example module"]
  node_modulebuild["Build external module<br/>[README.md]"]
  node_hello["Hello module<br/>[hello.c]"]
  node_load["Load module<br/>[README.md]"]
end

node_developer(("Developer"))
node_runningkernel["Running WSL2 kernel"]

node_developer -->|"follows"| node_readme
node_readme -->|"guides"| node_setup
node_setup -->|"then obtains"| node_source
node_source -->|"then configures"| node_config
node_config -->|"then prepares"| node_prepare
node_prepare -->|"then builds"| node_symbols
node_symbols -->|"then builds"| node_image
node_image -->|"then boots"| node_boot
node_boot -->|"enables matching"| node_modulebuild
node_modulebuild -.->|"builds"| node_hello
node_modulebuild -->|"precedes"| node_load
node_load -->|"loads into"| node_runningkernel

click node_readme "https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/README.md"
click node_setup "https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/README.md"
click node_source "https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/README.md"
click node_config "https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/README.md"
click node_prepare "https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/README.md"
click node_symbols "https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/README.md"
click node_image "https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/README.md"
click node_boot "https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/README.md"
click node_modulebuild "https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/README.md"
click node_hello "https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/hello.c"
click node_load "https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/README.md"
click node_kernelpdf "https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/FPGA_SoC_Kernel_Build_WSL2.pdf"
click node_modulepdf "https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/Kernel_Module_Development_on_WSL2.pdf"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_readme,node_kernelpdf,node_modulepdf toneBlue
class node_setup,node_source,node_config,node_prepare,node_symbols,node_image,node_boot toneAmber
class node_modulebuild,node_hello,node_load toneMint
class node_developer,node_runningkernel toneIndigo
```

## Components

### Development guide

- [Practical guide](https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/README.md): `README.md`
- [Kernel build guide PDF](https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/FPGA_SoC_Kernel_Build_WSL2.pdf): `FPGA_SoC_Kernel_Build_WSL2.pdf`
- [Module development PDF](https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/Kernel_Module_Development_on_WSL2.pdf): `Kernel_Module_Development_on_WSL2.pdf`

### Kernel setup

- [Install WSL2 tools](https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/README.md): `README.md`
- [Get WSL2 source](https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/README.md): `README.md`
- [Configure kernel tree](https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/README.md): `README.md`
- [Prepare module tree](https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/README.md): `README.md`
- [Build symbol table](https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/README.md): `README.md`
- [Build kernel image](https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/README.md): `README.md`
- [Boot custom kernel](https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/README.md): `README.md`

### Example module

- [Build external module](https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/README.md): `README.md`
- [Hello module](https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/hello.c): `hello.c`
- [Load module](https://github.com/soumya-dev-nayak/kernel-module-development-on-wsl2/blob/main/README.md): `README.md`

### Other components

- **Developer**
- **Running WSL2 kernel**

## Connections

- Developer → Practical guide: follows (evidence: `README.md`)
- Practical guide → Install WSL2 tools: guides (evidence: `README.md`)
- Install WSL2 tools → Get WSL2 source: then obtains (evidence: `README.md`)
- Get WSL2 source → Configure kernel tree: then configures (evidence: `README.md`)
- Configure kernel tree → Prepare module tree: then prepares (evidence: `README.md`)
- Prepare module tree → Build symbol table: then builds (evidence: `README.md`)
- Build symbol table → Build kernel image: then builds (evidence: `README.md`)
- Build kernel image → Boot custom kernel: then boots (evidence: `README.md`)
- Boot custom kernel → Build external module: enables matching (evidence: `README.md`)
- Build external module → Hello module: builds
- Build external module → Load module: precedes (evidence: `README.md`)
- Load module → Running WSL2 kernel: loads into (evidence: `README.md`)
