hostsyscall

package
v0.0.0-...-2b55090 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2024 License: Apache-2.0, MIT Imports: 1 Imported by: 0

Documentation

Overview

Package hostsyscall provides functions like unix.RawSyscall, but without the overhead of multiple stack frame allocations.

This is mostly relevant for platform/kvm which needs to execute some function call chains in a go:nosplit environment. Debug builds specifically make using unix.RawSyscall variants infeasible.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RawSyscall

func RawSyscall(trap, a1, a2, a3 uintptr) (r1 uintptr, errno unix.Errno)

RawSyscall is a copy of runtime.Syscall6, but only uses the first three arguments.

func RawSyscall6

func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1 uintptr, errno unix.Errno)

RawSyscall6 is a copy of runtime.Syscall6.

func RawSyscallErrno

func RawSyscallErrno(trap, a1, a2, a3 uintptr) unix.Errno

RawSyscallErrno is like RawSyscall, but only returns errno, and 0 if successful.

func RawSyscallErrno6

func RawSyscallErrno6(trap, a1, a2, a3, a4, a5, a6 uintptr) unix.Errno

RawSyscallErrno6 is like RawSyscall6, but only returns errno, and 0 if successful.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL