go/src/runtime/mem_linux.go

const _EACCES

const _EINVAL

// Don't split the stack as this method may be invoked without a valid G, which
// prevents us from allocating more stack.
//
//go:nosplit
func sysAllocOS(n uintptr) unsafe.Pointer {}

var adviseUnused

const madviseUnsupported

func sysUnusedOS(v unsafe.Pointer, n uintptr) {}

func sysUsedOS(v unsafe.Pointer, n uintptr) {}

func sysHugePageOS(v unsafe.Pointer, n uintptr) {}

func sysNoHugePageOS(v unsafe.Pointer, n uintptr) {}

func sysHugePageCollapseOS(v unsafe.Pointer, n uintptr) {}

// Don't split the stack as this function may be invoked without a valid G,
// which prevents us from allocating more stack.
//
//go:nosplit
func sysFreeOS(v unsafe.Pointer, n uintptr) {}

func sysFaultOS(v unsafe.Pointer, n uintptr) {}

func sysReserveOS(v unsafe.Pointer, n uintptr) unsafe.Pointer {}

func sysMapOS(v unsafe.Pointer, n uintptr) {}