diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-03-15 06:32:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 06:32:07 -0400 |
commit | 758f2c7a094a3654af98d9365b7f975b7bd12ff4 (patch) | |
tree | 41dace9da8f4eb9da1500b28e94ff72e04ebee2f /vendor/golang.org/x/sys/unix/ioctl_linux.go | |
parent | ae7997ab50c7dcfbf7f0a3ec19c9ce1126095f8e (diff) | |
parent | daebf50b899fe998b8866a9f99e4c2b677645091 (diff) | |
download | podman-758f2c7a094a3654af98d9365b7f975b7bd12ff4.tar.gz podman-758f2c7a094a3654af98d9365b7f975b7bd12ff4.tar.bz2 podman-758f2c7a094a3654af98d9365b7f975b7bd12ff4.zip |
Merge pull request #13498 from flouthoc/podman-vendor-buildah
vendor: update `c/buildah`, `c/image` and `c/storage`
Diffstat (limited to 'vendor/golang.org/x/sys/unix/ioctl_linux.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/ioctl_linux.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/ioctl_linux.go b/vendor/golang.org/x/sys/unix/ioctl_linux.go index 1dadead21..884430b81 100644 --- a/vendor/golang.org/x/sys/unix/ioctl_linux.go +++ b/vendor/golang.org/x/sys/unix/ioctl_linux.go @@ -194,3 +194,26 @@ func ioctlIfreqData(fd int, req uint, value *ifreqData) error { // identical so pass *IfreqData directly. return ioctlPtr(fd, req, unsafe.Pointer(value)) } + +// IoctlKCMClone attaches a new file descriptor to a multiplexor by cloning an +// existing KCM socket, returning a structure containing the file descriptor of +// the new socket. +func IoctlKCMClone(fd int) (*KCMClone, error) { + var info KCMClone + if err := ioctlPtr(fd, SIOCKCMCLONE, unsafe.Pointer(&info)); err != nil { + return nil, err + } + + return &info, nil +} + +// IoctlKCMAttach attaches a TCP socket and associated BPF program file +// descriptor to a multiplexor. +func IoctlKCMAttach(fd int, info KCMAttach) error { + return ioctlPtr(fd, SIOCKCMATTACH, unsafe.Pointer(&info)) +} + +// IoctlKCMUnattach unattaches a TCP socket file descriptor from a multiplexor. +func IoctlKCMUnattach(fd int, info KCMUnattach) error { + return ioctlPtr(fd, SIOCKCMUNATTACH, unsafe.Pointer(&info)) +} |