← All repos

kernelscript

KernelScript is a modern, type-safe, domain-specific programming language for eBPF-centric kernel customization

ebpflinux-kernelmultikernel
Browse cluster: Cluster 45
544commits
5contributors
4languages

Tech stack & purpose

KernelScript is a modern, type-safe domain-specific programming language designed for eBPF-centric kernel customization and Linux kernel development. It unifies eBPF programs, userspace code, and kernel modules (kfuncs) in a single source file, automatically compiling each component to its appropriate target while providing features like automatic tail call orchestration, transparent dynptr integration, and zero-boilerplate shared state across programs. The language is built by Multikernel Technologies, Inc., and is written in OCaml using the Dune build system, with the compiler generating C code for eBPF programs and userspace loaders alongside optional kernel module code when kfuncs are defined.

Languages

OCaml
98.8%
C
1.0%
Shell
0.2%
Dune
0.0%

Contributors