package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev
# Functions
CheckXstate verifies that xstate can be restored by the xrstor instruction.
CompareAndSwapUint32 is equivalent to atomicbitops.CompareAndSwapUint32, except that it returns an error if SIGSEGV or SIGBUS is received while accessing ptr, or if ptr is not aligned to a 4-byte boundary.
Copy copies toCopy bytes from src to dst.
CopyIn copies len(dst) bytes from src to dst.
CopyOut copies len(src) bytes from src to dst.
FindEndAddress returns the end address (one byte beyond the last) of the function that contains the specified address (begin).
LoadUint32 is like sync/atomic.LoadUint32, but operates with user memory.
SwapUint32 is equivalent to sync/atomic.SwapUint32, except that it returns an error if SIGSEGV or SIGBUS is received while accessing ptr, or if ptr is not aligned to a 4-byte boundary.
SwapUint64 is equivalent to sync/atomic.SwapUint64, except that it returns an error if SIGSEGV or SIGBUS is received while accessing ptr, or if ptr is not aligned to an 8-byte boundary.
ZeroOut writes toZero zero bytes to dst.
# Structs
AlignmentError is returned when a safecopy function is passed an address that does not meet alignment requirements.
BusError is returned when a safecopy function receives SIGBUS.
SegvError is returned when a safecopy function receives SIGSEGV.