gvisorgvisor.dev/gvisor/pkg/hostsyscall Index | Files

package hostsyscall

import "gvisor.dev/gvisor/pkg/hostsyscall"

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

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.

Source Files

hostsyscall.go

Version
v0.0.0-20250605235530-a6711d1e1dc6 (latest)
Published
Jun 5, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
4 hours ago

Tools for package owners.