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 ¶
- func RawSyscall(trap, a1, a2, a3 uintptr) (r1 uintptr, errno unix.Errno)
- func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1 uintptr, errno unix.Errno)
- func RawSyscallErrno(trap, a1, a2, a3 uintptr) unix.Errno
- func RawSyscallErrno6(trap, a1, a2, a3, a4, a5, a6 uintptr) unix.Errno
Functions ¶
func RawSyscall ¶
RawSyscall is a copy of runtime.Syscall6, but only uses the first three arguments.
func RawSyscall6 ¶
RawSyscall6 is a copy of runtime.Syscall6.
func RawSyscallErrno ¶
RawSyscallErrno is like RawSyscall, but only returns errno, and 0 if successful.
func RawSyscallErrno6 ¶
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.