1
0
mirror of https://github.com/lxc/incus.git synced 2026-02-05 09:46:19 +01:00

internal/linux: Fix missing export comments

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
This commit is contained in:
Stéphane Graber
2025-03-17 19:04:43 -04:00
parent b28be0fb05
commit 1aad74a347
2 changed files with 10 additions and 2 deletions

View File

@@ -8,7 +8,12 @@ package linux
import "C"
const (
// IoctlBtrfsSetReceivedSubvol matches BTRFS_IOC_SET_RECEIVED_SUBVOL.
IoctlBtrfsSetReceivedSubvol = C.BTRFS_IOC_SET_RECEIVED_SUBVOL
IoctlHIDIOCGrawInfo = C.HIDIOCGRAWINFO
IoctlVhostVsockSetGuestCid = C.VHOST_VSOCK_SET_GUEST_CID
// IoctlHIDIOCGrawInfo matches HIDIOCGRAWINFO.
IoctlHIDIOCGrawInfo = C.HIDIOCGRAWINFO
// IoctlVhostVsockSetGuestCid matches VHOST_VSOCK_SET_GUEST_CID.
IoctlVhostVsockSetGuestCid = C.VHOST_VSOCK_SET_GUEST_CID
)

View File

@@ -101,7 +101,10 @@ func PidfdSendSignal(Pidfd int, Signal int, Flags uint32) error {
}
const (
// CLOSE_RANGE_UNSHARE matches CLOSE_RANGE_UNSHARE flag.
CLOSE_RANGE_UNSHARE uint32 = C.CLOSE_RANGE_UNSHARE
// CLOSE_RANGE_CLOEXEC matches CLOSE_RANGE_CLOEXEC flag.
CLOSE_RANGE_CLOEXEC uint32 = C.CLOSE_RANGE_CLOEXEC
)