package util
import "gvisor.dev/gvisor/pkg/sentry/devices/tpuproxy/util"
Package util contains helper functions for tpuproxy implementations.
Index ¶
- func IOCTLInvoke[Cmd, Arg constraints.Integer](hostFd int32, cmd Cmd, arg Arg) (uintptr, error)
- func IOCTLInvokePtrArg[Cmd constraints.Integer, Params any](hostFd int32, cmd Cmd, params *Params) (uintptr, error)
Functions ¶
func IOCTLInvoke ¶
func IOCTLInvoke[Cmd, Arg constraints.Integer](hostFd int32, cmd Cmd, arg Arg) (uintptr, error)
IOCTLInvoke makes ioctl syscalls with the arg of the integer type.
func IOCTLInvokePtrArg ¶
func IOCTLInvokePtrArg[Cmd constraints.Integer, Params any](hostFd int32, cmd Cmd, params *Params) (uintptr, error)
IOCTLInvokePtrArg makes ioctl syscalls with the command of the integer type and the pointer to any given params.
Source Files ¶
ioctl_unsafe.go util.go
- Version
- v0.0.0-20250605235530-a6711d1e1dc6 (latest)
- Published
- Jun 5, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 4 hours ago –
Tools for package owners.