github.com/Cloud-Foundations/Dominator@v0.3.4/lib/net/vsock/api.go (about) 1 package vsock 2 3 // CheckVsockets returns nil if VSOCK sockets are supported, else it returns an 4 // error. 5 func CheckVsockets() error { 6 return checkVsockets() 7 } 8 9 // GetContextID returns the local Context Identifier for the VSOCK socket 10 // address family. This may be a privileged operation. 11 func GetContextID() (uint32, error) { 12 return getContextID() 13 }