package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev

# Functions

CheckTranslateResult returns an error if (ts, terr) does not satisfy all postconditions for Mappable.Translate(required, optional, at).
segmentAfterPosition returns the successor segment of the position given by n.children[i], which may or may not contain a child.
segmentBeforePosition returns the predecessor segment of the position given by n.children[i], which may or may not contain a child.
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
minDegree is the minimum degree of an internal node in a Set B-tree.
trackGaps is an optional parameter.
MLockEager specifies that a mapping is memory-locked, as by mlock() or similar.
MLockLazy specifies that a mapping is memory-locked, as by mlock() or similar.
MLockNone specifies that a mapping has no memory locking behavior.

# Structs

BusError may be returned by implementations of Mappable.Translate for errors that should result in SIGBUS delivery if they cause application page fault handling to fail.
A Range represents a contiguous range of T.
InvalidateOpts holds options to MappingSpace.Invalidate.
A Range represents a contiguous range of T.
A GapIterator is conceptually one of: - A pointer to a position between two segments, before the first segment, or after the last segment in a set, called a *gap*; or - A terminal iterator, which is a sentinel indicating that the end of iteration has been reached.
A Iterator is conceptually one of: - A pointer to a segment in a set; or - A terminal iterator, which is a sentinel indicating that the end of iteration has been reached.
+stateify savable.
MappingOfRange represents a mapping of a MappableRange.
SegmentDataSlices represents segments from a set as slices of start, end, and values.
A Set is a mapping of segments with non-overlapping Range keys.
MMapOpts specifies a request to create a memory mapping.
Translations are returned by Mappable.Translate.

# Interfaces

File represents a host file that may be mapped into an platform.AddressSpace.
Mappable represents a memory-mappable object, a mutable mapping from uint64 offsets to (File, uint64 File offset) pairs.
MappingIdentity controls the lifetime of a Mappable, and provides information about the Mappable for /proc/[pid]/maps.
MappingSpace represents a mutable mapping from hostarch.Addrs to (Mappable, uint64 offset) pairs.

# Type aliases

dynamicGap is a type that disappears if trackGaps is 0.
MappingsOfRange is the value type of MappingSet, and represents the set of all mappings of the corresponding MappableRange.
MLockMode specifies the memory locking behavior of a memory mapping.