//go:cgo_ldflag "-Wl,--gc-sections"
//go:cgo_ldflag "-Wl,-s"
//go:cgo_ldflag "-Wl,-soname,libnvidia-container-go.so.1"
// Code generated by cmd/cgo; DO NOT EDIT.

package main

import "unsafe"

import "syscall"

import _cgopackage "runtime/cgo"

type _ _cgopackage.Incomplete
var _ syscall.Errno
func _Cgo_ptr(ptr unsafe.Pointer) unsafe.Pointer { return ptr }

//go:linkname _Cgo_always_false runtime.cgoAlwaysFalse
var _Cgo_always_false bool
//go:linkname _Cgo_use runtime.cgoUse
func _Cgo_use(interface{})
type _Ctype__Bool bool

type _Ctype__GoString_ string

type _Ctype___dev_t = _Ctype_ulong

type _Ctype___pid_t = _Ctype_int

type _Ctype_char int8

type _Ctype_dev_t = _Ctype___dev_t

type _Ctype_int int32

type _Ctype_intgo = _Ctype_ptrdiff_t

type _Ctype_long int64

type _Ctype_pid_t = _Ctype___pid_t

type _Ctype_ptrdiff_t = _Ctype_long

type _Ctype_struct_device_rule struct {
	allow	_Ctype__Bool
	_type	*_Ctype_char
	access	*_Ctype_char
	major	_Ctype_dev_t
	minor	_Ctype_dev_t
}

type _Ctype_ulong uint64

type _Ctype_void [0]byte

//go:linkname _cgo_runtime_cgocall runtime.cgocall
func _cgo_runtime_cgocall(unsafe.Pointer, uintptr) int32

//go:linkname _cgoCheckPointer runtime.cgoCheckPointer
func _cgoCheckPointer(interface{}, interface{})

//go:linkname _cgoCheckResult runtime.cgoCheckResult
func _cgoCheckResult(interface{})


// CString converts the Go string s to a C string.
//
// The C string is allocated in the C heap using malloc.
// It is the caller's responsibility to arrange for it to be
// freed, such as by calling C.free (be sure to include stdlib.h
// if C.free is needed).
func _Cfunc_CString(s string) *_Ctype_char {
	if len(s)+1 <= 0 {
		panic("string too large")
	}
	p := _cgo_cmalloc(uint64(len(s)+1))
	sliceHeader := struct {
		p   unsafe.Pointer
		len int
		cap int
	}{p, len(s)+1, len(s)+1}
	b := *(*[]byte)(unsafe.Pointer(&sliceHeader))
	copy(b, s)
	b[len(s)] = 0
	return (*_Ctype_char)(p)
}

//go:linkname _cgo_runtime_gostring runtime.gostring
func _cgo_runtime_gostring(*_Ctype_char) string

// GoString converts the C string p into a Go string.
func _Cfunc_GoString(p *_Ctype_char) string {
	return _cgo_runtime_gostring(p)
}
//go:cgo_export_dynamic GetDeviceCGroupVersion
//go:linkname _cgoexp_7ba9b32a7bf7_GetDeviceCGroupVersion _cgoexp_7ba9b32a7bf7_GetDeviceCGroupVersion
//go:cgo_export_static _cgoexp_7ba9b32a7bf7_GetDeviceCGroupVersion
func _cgoexp_7ba9b32a7bf7_GetDeviceCGroupVersion(a *struct {
		p0 *_Ctype_char
		p1 _Ctype_pid_t
		p2 *_Ctype_int
		p3 **_Ctype_char
		r0 _Ctype_int
	}) {
	a.r0 = GetDeviceCGroupVersion(a.p0, a.p1, a.p2, a.p3)
}
//go:cgo_export_dynamic GetDeviceCGroupMountPath
//go:linkname _cgoexp_7ba9b32a7bf7_GetDeviceCGroupMountPath _cgoexp_7ba9b32a7bf7_GetDeviceCGroupMountPath
//go:cgo_export_static _cgoexp_7ba9b32a7bf7_GetDeviceCGroupMountPath
func _cgoexp_7ba9b32a7bf7_GetDeviceCGroupMountPath(a *struct {
		p0 _Ctype_int
		p1 *_Ctype_char
		p2 _Ctype_pid_t
		p3 **_Ctype_char
		p4 **_Ctype_char
		p5 **_Ctype_char
		r0 _Ctype_int
	}) {
	a.r0 = GetDeviceCGroupMountPath(a.p0, a.p1, a.p2, a.p3, a.p4, a.p5)
}
//go:cgo_export_dynamic GetDeviceCGroupRootPath
//go:linkname _cgoexp_7ba9b32a7bf7_GetDeviceCGroupRootPath _cgoexp_7ba9b32a7bf7_GetDeviceCGroupRootPath
//go:cgo_export_static _cgoexp_7ba9b32a7bf7_GetDeviceCGroupRootPath
func _cgoexp_7ba9b32a7bf7_GetDeviceCGroupRootPath(a *struct {
		p0 _Ctype_int
		p1 *_Ctype_char
		p2 *_Ctype_char
		p3 _Ctype_int
		p4 **_Ctype_char
		p5 **_Ctype_char
		r0 _Ctype_int
	}) {
	a.r0 = GetDeviceCGroupRootPath(a.p0, a.p1, a.p2, a.p3, a.p4, a.p5)
}
//go:cgo_export_dynamic AddDeviceRules
//go:linkname _cgoexp_7ba9b32a7bf7_AddDeviceRules _cgoexp_7ba9b32a7bf7_AddDeviceRules
//go:cgo_export_static _cgoexp_7ba9b32a7bf7_AddDeviceRules
func _cgoexp_7ba9b32a7bf7_AddDeviceRules(a *struct {
		p0 _Ctype_int
		p1 *_Ctype_char
		p2 []CDeviceRule
		p3 **_Ctype_char
		r0 _Ctype_int
	}) {
	a.r0 = AddDeviceRules(a.p0, a.p1, a.p2, a.p3)
}

//go:cgo_import_static _cgo_7ba9b32a7bf7_Cfunc__Cmalloc
//go:linkname __cgofn__cgo_7ba9b32a7bf7_Cfunc__Cmalloc _cgo_7ba9b32a7bf7_Cfunc__Cmalloc
var __cgofn__cgo_7ba9b32a7bf7_Cfunc__Cmalloc byte
var _cgo_7ba9b32a7bf7_Cfunc__Cmalloc = unsafe.Pointer(&__cgofn__cgo_7ba9b32a7bf7_Cfunc__Cmalloc)

//go:linkname runtime_throw runtime.throw
func runtime_throw(string)

//go:cgo_unsafe_args
func _cgo_cmalloc(p0 uint64) (r1 unsafe.Pointer) {
	_cgo_runtime_cgocall(_cgo_7ba9b32a7bf7_Cfunc__Cmalloc, uintptr(unsafe.Pointer(&p0)))
	if r1 == nil {
		runtime_throw("runtime: C malloc failed")
	}
	return
}
