Files
tailscale/net/uring/all.go
Josh Bleecher Snyder ed0f50f924 split into several files
file for file stuff
tun for tun stuff
udp for udp stuff
io_uring for general uring stuff

also make build tags suffice
2021-07-13 15:15:16 -07:00

13 lines
378 B
Go

// Package uring provides a net.PacketConn and tun.Device that use io_uring for I/O.
package uring
import "runtime"
// This file contains code shared across all platforms.
// Available reports whether io_uring is available on this machine.
// If Available reports false, no other package uring APIs should be called.
func Available() bool {
return runtime.GOOS == "linux"
}