# cachyos/kernel-patches architecture

> Architecture diagram of the GitHub repository cachyos/kernel-patches, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cachyos/kernel-patches
- Repository: https://github.com/cachyos/kernel-patches

## Overview

This repository is a versioned collection of custom Linux kernel patches used by CachyOS kernels. The principal workflow is that a downstream kernel maintainer selects patches for a kernel version and incorporates them into the CachyOS kernel, changing kernel behavior. The patchsets cover scheduling, memory management, hardware and power, filesystems and storage, networking, and security. The tree shows patch organization and filenames, but no source excerpts or application logic; links therefore reflect only the README’s stated downstream use, not an inferred order between patches.

Main entry points: [`7.3/sched`](https://github.com/cachyos/kernel-patches/tree/master/7.3/sched) (Scheduler patches), [`6.0`](https://github.com/cachyos/kernel-patches/tree/master/6.0) (Memory patches), [`6.14`](https://github.com/cachyos/kernel-patches/tree/master/6.14) (Hardware and power patches), [`6.12/misc`](https://github.com/cachyos/kernel-patches/tree/master/6.12/misc) (Security patches)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_sched["Scheduling"]
  node_sched_patches["Scheduler patches<br/>[sched]"]
end

subgraph group_memory["Memory"]
  node_memory_patches["Memory patches<br/>[6.0]"]
end

subgraph group_platform["Platform and hardware"]
  node_platform_patches["Hardware and power patches<br/>[6.14]"]
end

subgraph group_kernel["Kernel subsystems"]
  node_storage_patches["Filesystem and storage patches<br/>[6.14]"]
  node_network_patches["Network patches<br/>[6.0]"]
  node_security_patches["Security patches<br/>[misc]"]
  node_other_patches["Other kernel patches<br/>[6.14]"]
end

node_maintainer(("Kernel maintainer"))
node_cachyos_kernel["CachyOS kernel"]

node_maintainer -->|"selects by version"| node_sched_patches
node_maintainer -->|"selects by version"| node_memory_patches
node_maintainer -->|"selects by version"| node_platform_patches
node_maintainer -->|"selects by version"| node_storage_patches
node_maintainer -->|"selects by version"| node_network_patches
node_maintainer -->|"selects by version"| node_security_patches
node_maintainer -->|"selects by version"| node_other_patches
node_sched_patches -->|"incorporated into"| node_cachyos_kernel
node_memory_patches -->|"incorporated into"| node_cachyos_kernel
node_platform_patches -->|"incorporated into"| node_cachyos_kernel
node_storage_patches -->|"incorporated into"| node_cachyos_kernel
node_network_patches -->|"incorporated into"| node_cachyos_kernel
node_security_patches -->|"incorporated into"| node_cachyos_kernel
node_other_patches -->|"incorporated into"| node_cachyos_kernel

click node_sched_patches "https://github.com/cachyos/kernel-patches/tree/master/7.3/sched"
click node_memory_patches "https://github.com/cachyos/kernel-patches/tree/master/6.0"
click node_platform_patches "https://github.com/cachyos/kernel-patches/tree/master/6.14"
click node_storage_patches "https://github.com/cachyos/kernel-patches/tree/master/6.14"
click node_network_patches "https://github.com/cachyos/kernel-patches/tree/master/6.0"
click node_security_patches "https://github.com/cachyos/kernel-patches/tree/master/6.12/misc"
click node_other_patches "https://github.com/cachyos/kernel-patches/tree/master/6.14"

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_sched_patches toneBlue
class node_memory_patches toneAmber
class node_platform_patches toneMint
class node_storage_patches,node_network_patches,node_security_patches,node_other_patches toneRose
class node_maintainer,node_cachyos_kernel toneIndigo
```

## Components

### Scheduling

- [Scheduler patches](https://github.com/cachyos/kernel-patches/tree/master/7.3/sched): `7.3/sched`

### Memory

- [Memory patches](https://github.com/cachyos/kernel-patches/tree/master/6.0): `6.0`

### Platform and hardware

- [Hardware and power patches](https://github.com/cachyos/kernel-patches/tree/master/6.14): `6.14`

### Kernel subsystems

- [Filesystem and storage patches](https://github.com/cachyos/kernel-patches/tree/master/6.14): `6.14`
- [Network patches](https://github.com/cachyos/kernel-patches/tree/master/6.0): `6.0`
- [Security patches](https://github.com/cachyos/kernel-patches/tree/master/6.12/misc): `6.12/misc`
- [Other kernel patches](https://github.com/cachyos/kernel-patches/tree/master/6.14): `6.14`

### Other components

- **Kernel maintainer**
- **CachyOS kernel**

## Connections

- Kernel maintainer → Scheduler patches: selects by version
- Kernel maintainer → Memory patches: selects by version
- Kernel maintainer → Hardware and power patches: selects by version
- Kernel maintainer → Filesystem and storage patches: selects by version
- Kernel maintainer → Network patches: selects by version
- Kernel maintainer → Security patches: selects by version
- Kernel maintainer → Other kernel patches: selects by version
- Scheduler patches → CachyOS kernel: incorporated into
- Memory patches → CachyOS kernel: incorporated into
- Hardware and power patches → CachyOS kernel: incorporated into
- Filesystem and storage patches → CachyOS kernel: incorporated into
- Network patches → CachyOS kernel: incorporated into
- Security patches → CachyOS kernel: incorporated into
- Other kernel patches → CachyOS kernel: incorporated into
