Module kernel_path

Module kernel_path 

Source

Enums§

GitRefKind
Which git ref namespace a KernelId::Git’s git_ref names, chosen explicitly by the operator via the #tag= / #branch= / #sha= fragment — never DWIM-inferred.
KernelId
Kernel identifier: filesystem path, version string, cache key, stable-release range, or git source.

Constants§

KERNEL_ID_GRAMMAR
Human-readable enumeration of every form KernelId::parse accepts. The macro-time rejection in declare_scheduler!(kernels = […]) cites this const verbatim. The runtime cache-lookup bails in ktstr / cargo-ktstr cite the KTSTR_KERNEL_HINT const, a manual mirror of this same wording — const composition cannot concat! a const &str, only literals — so keep the two in sync when either changes.

Functions§

derive_kernel_dir
Derive the kernel directory (holding vmlinux and related build artifacts) from a kernel image path.
find_image
Find a bootable kernel image on the host.
find_image_in_dir
Find a bootable kernel image within a directory.
resolve_btf
Resolve the BTF source file for vmlinux.h generation.
resolve_kernel
Resolve a kernel source/build directory.