package
6.0.0+incompatible
Repository: https://github.com/srcup/u-root.git
Documentation: pkg.go.dev

# Functions

AlignPhys fixes s to the kexec_load preconditions.
Dedup deduplicates overlapping and merges adjacent segments in segs.
FileLoad loads the given kernel as the new kernel with the given ramfs and cmdline.
Load loads the given segments into memory to be executed on a kexec-reboot.
NewSegment creates new Segment.
ParseMemoryMap reads firmware provided memory map from /sys/firmware/memmap.
RangeFromInterval returns a Range representing [start, end).
Reboot executes a kernel previously loaded with FileInit.

# Constants

M1 is 1 Megabyte in bits.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ErrKexec is returned by Load if the kexec failed.
ErrNotEnoughSpace is returned by the FindSpace family of functions if no range is large enough to accommodate the request.
Memory provides routines to work with physical memory ranges.
Range represents a contiguous uintptr interval [Start, Start+Size).
Segment defines kernel memory layout.
TypedRange represents range of physical memory.

# Type aliases

MemoryMap defines the layout of physical memory.
Ranges is a list of non-overlapping ranges.
RangeType defines type of a TypedRange based on the Linux kernel string provided by firmware memory map.
Segments is a collection of segments.