kexec

package
v0.0.0-...-8fcbe07 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package kexec allows executing subsequent kernels from Linux userspace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileLoad

func FileLoad(kernel, initramfs *os.File, cmdline string) error

FileLoad loads the given kernel as the new kernel with the given initramfs and cmdline. It also performs auxiliary work like adding the ACPI RSDP physical address to command line if using EFI. The kernel can be started by calling unix.Reboot(unix.LINUX_REBOOT_CMD_KEXEC). The underlying syscall is only available on x86_64, arm64 and riscv. Parts of this function are taken from u-root's kexec package.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL