github.com/docker/engine@v22.0.0-20211208180946-d456264580cf+incompatible/pkg/system/mknod_linux.go (about) 1 package system // import "github.com/docker/docker/pkg/system" 2 3 import ( 4 "golang.org/x/sys/unix" 5 ) 6 7 // Mknod creates a filesystem node (file, device special file or named pipe) named path 8 // with attributes specified by mode and dev. 9 func Mknod(path string, mode uint32, dev int) error { 10 return unix.Mknod(path, mode, dev) 11 }