tailscale/net/uring/all.go

12 lines
293 B
Go
Raw Normal View History

2021-07-06 20:24:16 +01:00
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"
}