commit | c7b036bca213962a7e60f3edb47624606799d074 | [log] [tgz] |
---|---|---|
author | Lorenz Brun <lorenz@monogon.tech> | Thu Jun 01 12:23:57 2023 +0200 |
committer | Lorenz Brun <lorenz@monogon.tech> | Tue Jun 13 13:44:46 2023 +0000 |
tree | f0385f1ff6fe9a9fe41f62f32c0079006a1c5038 | |
parent | 5832cd92957a6933c0fd644496d957ea2d8ef36d [diff] |
m/p/kmod: init This adds a package for working with Linux kernel loadable modules in Go. It contains syscall wrappers for loading and unloading modules, a metadata format for fast lookup of modules handling devices using a custom radix tree, parsers for module info metadata and various utility functions and data structures. A significant amount of the code in here has no formal spec and is written against behavior and information extracted from the reference kmod code as well as the Linux kernel itself. Change-Id: I3d527f3631f4dd1832b9cfba2d50aeb03a2b88a8 Reviewed-on: https://review.monogon.dev/c/monogon/+/1789 Reviewed-by: Serge Bazanski <serge@monogon.tech> Tested-by: Jenkins CI
This is the main repository containing the source code for the Monogon Platform.
This is pre-release software - take a look, and check back later!
Our build environment is self-contained and requires only minimal host dependencies:
/dev/kvm
(if you want to run tests).Our docs assume that Bazelisk is available as bazel
on your PATH.
Refer to SETUP.md for detailed instructions.
Build CLI and node image:
bazel build //metropolis/cli/dbg //:launch -c dbg
Launch an ephemeral test node:
bazel test //:launch -c dbg --test_output=streamed
Run a kubectl command while the test is running:
bazel-bin/metropolis/cli/dbg/dbg_/dbg kubectl describe node
Run full test suite:
bazel test -c dbg //...