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

# Functions

AddrRangeSeqFromSlice returns an AddrRangeSeq representing all AddrRanges in slice.
AddrRangeSeqOf returns an AddrRangeSeq representing the single AddrRange ar.
CacheLineRoundDown returns the offset rounded down to the nearest multiple of CacheLineSize.
CacheLineRoundUp returns the offset rounded up to the nearest multiple of CacheLineSize.
HugePageOffset returns the offset of x into its containing page.
HugePageRoundDown returns x rounded down to the nearest multiple of HugePageSize.
HugePageRoundUp returns x rounded up to the nearest multiple of HugePageSize.
IsHugePageAligned returns true if x is a multiple of HugePageSize.
IsPageAligned returns true if x is a multiple of PageSize.
MustHugePageRoundUp is equivalent to HugePageRoundUp, but panics if rounding up overflows.
MustPageRoundUp is equivalent to PageRoundUp, but panics if rounding up overflows.
PageOffset returns the offset of x into its containing page.
PageRoundDown returns x rounded down to the nearest multiple of PageSize.
PageRoundUp returns x rounded up to the nearest multiple of PageSize.
ToPagesRoundUp returns (the number of pages equal to x bytes rounded up, true).

# Constants

Masks often used when working with alignment in constant expressions.
CacheLineShift is the binary log of the cache line size.
CacheLineSize is the size of the cache line.
Masks often used when working with alignment in constant expressions.
HugePageShift is the binary log of the system huge page size.
HugePageSize is the system huge page size.
Masks often used when working with alignment in constant expressions.
PageShift is the binary log of the system page size.
PageSize is the system page size.

# Variables

Convenient access types.
ByteOrder is the native byte order (little endian).
Convenient access types.
Convenient access types.
Convenient access types.
Convenient access types.
Convenient access types.
Convenient access types.

# Structs

AccessType specifies memory access types.
A Range represents a contiguous range of T.
An AddrRangeSeq represents a sequence of AddrRanges.

# Type aliases

Addr represents an address in an unspecified address space.