Documentation ¶
Overview ¶
Package nvgpu tracks the ABI of the Nvidia GPU Linux kernel driver: https://github.com/NVIDIA/open-gpu-kernel-modules
Index ¶
- Constants
- Variables
- type ClassID
- type Handle
- type HasCtrlInfoList
- type HasFrontendFD
- type IoctlAllocOSEvent
- type IoctlFreeOSEvent
- type IoctlNVOS02ParametersWithFD
- type IoctlNVOS33ParametersWithFD
- type IoctlRegisterFD
- type IoctlSysParams
- type IoctlWaitOpenComplete
- type NV0000_CTRL_GPU_GET_ID_INFO_PARAMS
- type NV0000_CTRL_OS_UNIX_EXPORT_OBJECT
- type NV0000_CTRL_OS_UNIX_EXPORT_OBJECT_TO_FD_PARAMS
- type NV0000_CTRL_OS_UNIX_GET_EXPORT_OBJECT_INFO_PARAMS
- type NV0000_CTRL_OS_UNIX_GET_EXPORT_OBJECT_INFO_PARAMS_V545
- type NV0000_CTRL_OS_UNIX_IMPORT_OBJECT_FROM_FD_PARAMS
- type NV0000_CTRL_SYSTEM_GET_BUILD_VERSION_PARAMS
- type NV0000_CTRL_SYSTEM_GET_P2P_CAPS_PARAMS
- type NV0000_CTRL_SYSTEM_GET_P2P_CAPS_PARAMS_V550
- type NV0005_ALLOC_PARAMETERS
- type NV0041_CTRL_GET_SURFACE_INFO_PARAMS
- type NV0080_ALLOC_PARAMETERS
- type NV0080_CTRL_FIFO_GET_CHANNELLIST_PARAMS
- type NV0080_CTRL_GPU_GET_CLASSLIST_PARAMS
- type NV0080_CTRL_GR_ROUTE_INFO
- type NV00DE_ALLOC_PARAMETERS
- type NV00DE_ALLOC_PARAMETERS_V545
- type NV00F8_ALLOCATION_PARAMETERS
- type NV00FD_ALLOCATION_PARAMETERS
- type NV00FD_ALLOCATION_PARAMETERS_V545
- type NV00FD_CTRL_ATTACH_GPU_PARAMS
- type NV2080_ALLOC_PARAMETERS
- type NV2080_CTRL_BIOS_GET_INFO_PARAMS
- type NV2080_CTRL_FIFO_DISABLE_CHANNELS_PARAMS
- type NV2080_CTRL_GR_GET_INFO_PARAMS
- type NV2081_ALLOC_PARAMETERS
- type NV503B_ALLOC_PARAMETERS
- type NV503B_BAR1_P2P_DMA_INFO
- type NV503C_ALLOC_PARAMETERS
- type NV503C_CTRL_REGISTER_VA_SPACE_PARAMS
- type NV83DE_ALLOC_PARAMETERS
- type NVB0B5_ALLOCATION_PARAMETERS
- type NVOS00Parameters
- type NVOS02Parameters
- type NVOS21Parameters
- func (n *NVOS21Parameters) FromOS64(other NVOS64Parameters)
- func (n *NVOS21Parameters) GetHClass() ClassID
- func (n *NVOS21Parameters) GetPAllocParms() P64
- func (n *NVOS21Parameters) GetPRightsRequested() P64
- func (n *NVOS21Parameters) GetPointer() uintptr
- func (n *NVOS21Parameters) SetPAllocParms(p P64)
- func (n *NVOS21Parameters) SetPRightsRequested(p P64)
- func (n *NVOS21Parameters) ToOS64() NVOS64Parameters
- type NVOS32AllocSize
- type NVOS32Parameters
- type NVOS33Parameters
- type NVOS34Parameters
- type NVOS54Parameters
- type NVOS55Parameters
- type NVOS56Parameters
- type NVOS57Parameters
- type NVOS64Parameters
- func (n *NVOS64Parameters) FromOS64(other NVOS64Parameters)
- func (n *NVOS64Parameters) GetHClass() ClassID
- func (n *NVOS64Parameters) GetPAllocParms() P64
- func (n *NVOS64Parameters) GetPRightsRequested() P64
- func (n *NVOS64Parameters) GetPointer() uintptr
- func (n *NVOS64Parameters) SetPAllocParms(p P64)
- func (n *NVOS64Parameters) SetPRightsRequested(p P64)
- func (n *NVOS64Parameters) ToOS64() NVOS64Parameters
- type NVXXXX_CTRL_XXX_INFO
- type NV_CHANNEL_ALLOC_PARAMS
- type NV_CHANNEL_GROUP_ALLOCATION_PARAMETERS
- type NV_CONFIDENTIAL_COMPUTE_ALLOC_PARAMS
- type NV_CTXSHARE_ALLOCATION_PARAMETERS
- type NV_EXPORT_MEM_PACKET
- type NV_GR_ALLOCATION_PARAMETERS
- type NV_HOPPER_USERMODE_A_PARAMS
- type NV_MEMORY_ALLOCATION_PARAMS
- type NV_MEMORY_ALLOCATION_PARAMS_V545
- type NV_MEMORY_DESC_PARAMS
- type NV_VASPACE_ALLOCATION_PARAMETERS
- type NvUUID
- type P64
- type RMAPIVersion
- type RS_ACCESS_MASK
- type RS_SHARE_POLICY
- type RmAllocParamType
- type UVM_ALLOC_SEMAPHORE_POOL_PARAMS
- type UVM_ALLOC_SEMAPHORE_POOL_PARAMS_V550
- type UVM_CREATE_EXTERNAL_RANGE_PARAMS
- type UVM_CREATE_RANGE_GROUP_PARAMS
- type UVM_DESTROY_RANGE_GROUP_PARAMS
- type UVM_DISABLE_PEER_ACCESS_PARAMS
- type UVM_DISABLE_READ_DUPLICATION_PARAMS
- type UVM_ENABLE_PEER_ACCESS_PARAMS
- type UVM_FREE_PARAMS
- type UVM_INITIALIZE_PARAMS
- type UVM_MAP_DYNAMIC_PARALLELISM_REGION_PARAMS
- type UVM_MAP_EXTERNAL_ALLOCATION_PARAMS
- type UVM_MAP_EXTERNAL_ALLOCATION_PARAMS_V550
- type UVM_MIGRATE_PARAMS
- type UVM_MIGRATE_PARAMS_V550
- type UVM_MIGRATE_RANGE_GROUP_PARAMS
- type UVM_MM_INITIALIZE_PARAMS
- type UVM_PAGEABLE_MEM_ACCESS_PARAMS
- type UVM_REGISTER_CHANNEL_PARAMS
- type UVM_REGISTER_GPU_PARAMS
- type UVM_REGISTER_GPU_VASPACE_PARAMS
- type UVM_SET_PREFERRED_LOCATION_PARAMS
- type UVM_SET_PREFERRED_LOCATION_PARAMS_V550
- type UVM_SET_RANGE_GROUP_PARAMS
- type UVM_TOOLS_READ_PROCESS_MEMORY_PARAMS
- type UVM_TOOLS_WRITE_PROCESS_MEMORY_PARAMS
- type UVM_UNMAP_EXTERNAL_PARAMS
- type UVM_UNREGISTER_CHANNEL_PARAMS
- type UVM_UNREGISTER_GPU_PARAMS
- type UVM_UNREGISTER_GPU_VASPACE_PARAMS
- type UVM_UNSET_ACCESSED_BY_PARAMS
- type UVM_UNSET_PREFERRED_LOCATION_PARAMS
- type UVM_VALIDATE_VA_RANGE_PARAMS
- type UvmGpuMappingAttributes
Constants ¶
const ( NV01_ROOT = 0x00000000 NV01_ROOT_NON_PRIV = 0x00000001 NV01_MEMORY_SYSTEM = 0x0000003e NV01_MEMORY_LOCAL_USER = 0x00000040 NV01_ROOT_CLIENT = 0x00000041 NV_MEMORY_EXTENDED_USER = 0x00000042 NV01_MEMORY_SYSTEM_OS_DESCRIPTOR = 0x00000071 NV01_EVENT_OS_EVENT = 0x00000079 NV01_DEVICE_0 = 0x00000080 RM_USER_SHARED_DATA = 0x000000de NV_MEMORY_FABRIC = 0x000000f8 NV_MEMORY_MULTICAST_FABRIC = 0x000000fd NV20_SUBDEVICE_0 = 0x00002080 NV2081_BINAPI = 0x00002081 NV50_P2P = 0x0000503b NV50_THIRD_PARTY_P2P = 0x0000503c NV50_MEMORY_VIRTUAL = 0x000050a0 GT200_DEBUGGER = 0x000083de GF100_PROFILER = 0x000090cc GF100_SUBDEVICE_MASTER = 0x000090e6 FERMI_CONTEXT_SHARE_A = 0x00009067 FERMI_VASPACE_A = 0x000090f1 KEPLER_CHANNEL_GROUP_A = 0x0000a06c TURING_USERMODE_A = 0x0000c461 TURING_CHANNEL_GPFIFO_A = 0x0000c46f AMPERE_CHANNEL_GPFIFO_A = 0x0000c56f TURING_DMA_COPY_A = 0x0000c5b5 TURING_COMPUTE_A = 0x0000c5c0 HOPPER_USERMODE_A = 0x0000c661 AMPERE_DMA_COPY_A = 0x0000c6b5 AMPERE_COMPUTE_A = 0x0000c6c0 AMPERE_DMA_COPY_B = 0x0000c7b5 AMPERE_COMPUTE_B = 0x0000c7c0 HOPPER_CHANNEL_GPFIFO_A = 0x0000c86f HOPPER_DMA_COPY_A = 0x0000c8b5 ADA_COMPUTE_A = 0x0000c9c0 NV_CONFIDENTIAL_COMPUTE = 0x0000cb33 HOPPER_SEC2_WORK_LAUNCH_A = 0x0000cba2 HOPPER_COMPUTE_A = 0x0000cbc0 )
Class IDs, from src/nvidia/generated/g_allclasses.h.
const ( NV0000_CTRL_CMD_CLIENT_GET_ADDR_SPACE_TYPE = 0xd01 NV0000_CTRL_CMD_CLIENT_SET_INHERITED_SHARE_POLICY = 0xd04 )
From src/common/sdk/nvidia/inc/ctrl/ctrl0000/ctrl0000client.h:
const ( NV0000_CTRL_CMD_GPU_GET_ATTACHED_IDS = 0x201 NV0000_CTRL_CMD_GPU_GET_ID_INFO = 0x202 NV0000_CTRL_CMD_GPU_GET_ID_INFO_V2 = 0x205 NV0000_CTRL_CMD_GPU_GET_PROBED_IDS = 0x214 NV0000_CTRL_CMD_GPU_ATTACH_IDS = 0x215 NV0000_CTRL_CMD_GPU_DETACH_IDS = 0x216 NV0000_CTRL_CMD_GPU_GET_PCI_INFO = 0x21b NV0000_CTRL_CMD_GPU_QUERY_DRAIN_STATE = 0x279 NV0000_CTRL_CMD_GPU_GET_MEMOP_ENABLE = 0x27b NV0000_CTRL_CMD_GPU_ASYNC_ATTACH_ID = 0x289 NV0000_CTRL_CMD_GPU_WAIT_ATTACH_ID = 0x290 )
From src/common/sdk/nvidia/inc/ctrl/ctrl0000/ctrl0000gpu.h:
const ( NV0000_CTRL_CMD_SYSTEM_GET_BUILD_VERSION = 0x101 NV0000_CTRL_CMD_SYSTEM_GET_P2P_CAPS = 0x127 NV0000_CTRL_CMD_SYSTEM_GET_P2P_CAPS_V2 = 0x12b NV0000_CTRL_CMD_SYSTEM_GET_FABRIC_STATUS = 0x136 NV0000_CTRL_CMD_SYSTEM_GET_P2P_CAPS_MATRIX = 0x13a NV0000_CTRL_CMD_SYSTEM_GET_FEATURES = 0x1f0 NV0000_CTRL_SYSTEM_MAX_ATTACHED_GPUS = 32 NV0000_CTRL_P2P_CAPS_INDEX_TABLE_SIZE = 9 )
From src/common/sdk/nvidia/inc/ctrl/ctrl0000/ctrl0000system.h:
const ( NV0000_CTRL_CMD_OS_UNIX_EXPORT_OBJECT_TO_FD = 0x3d05 NV0000_CTRL_CMD_OS_UNIX_IMPORT_OBJECT_FROM_FD = 0x3d06 NV0000_CTRL_CMD_OS_UNIX_GET_EXPORT_OBJECT_INFO = 0x3d08 NV0000_OS_UNIX_EXPORT_OBJECT_FD_BUFFER_SIZE = 64 )
From src/common/sdk/nvidia/inc/ctrl/ctrl0000/ctrl0000unix.h:
const ( NV0080_CTRL_CMD_GPU_GET_CLASSLIST = 0x800201 NV0080_CTRL_CMD_GPU_GET_NUM_SUBDEVICES = 0x800280 NV0080_CTRL_CMD_GPU_QUERY_SW_STATE_PERSISTENCE = 0x800288 NV0080_CTRL_CMD_GPU_GET_VIRTUALIZATION_MODE = 0x800289 NV0080_CTRL_CMD_GPU_GET_CLASSLIST_V2 = 0x800292 )
From src/common/sdk/nvidia/inc/ctrl/ctrl0080/ctrl0080gpu.h:
const ( NV00FD_CTRL_CMD_GET_INFO = 0xfd0101 NV00FD_CTRL_CMD_ATTACH_MEM = 0xfd0102 NV00FD_CTRL_CMD_ATTACH_GPU = 0xfd0104 NV00FD_CTRL_CMD_DETACH_MEM = 0xfd0105 )
From src/common/sdk/nvidia/inc/ctrl/ctrl00fd.h:
const ( NV2080_CTRL_CMD_BUS_GET_PCI_INFO = 0x20801801 NV2080_CTRL_CMD_BUS_GET_PCI_BAR_INFO = 0x20801803 NV2080_CTRL_CMD_BUS_GET_INFO_V2 = 0x20801823 NV2080_CTRL_CMD_BUS_GET_PCIE_SUPPORTED_GPU_ATOMICS = 0x2080182a NV2080_CTRL_CMD_BUS_GET_C2C_INFO = 0x2080182b )
From src/common/sdk/nvidia/inc/ctrl/ctrl2080/ctrl2080bus.h:
const ( NV2080_CTRL_CMD_FIFO_DISABLE_CHANNELS = 0x2080110b NV2080_CTRL_FIFO_DISABLE_CHANNELS_MAX_ENTRIES = 64 )
From src/common/sdk/nvidia/inc/ctrl/ctrl2080/ctrl2080fifo.h:
const ( NV2080_CTRL_CMD_GPU_GET_INFO_V2 = 0x20800102 NV2080_CTRL_CMD_GPU_GET_NAME_STRING = 0x20800110 NV2080_CTRL_CMD_GPU_GET_SHORT_NAME_STRING = 0x20800111 NV2080_CTRL_CMD_GPU_GET_SIMULATION_INFO = 0x20800119 NV2080_CTRL_CMD_GPU_QUERY_ECC_STATUS = 0x2080012f NV2080_CTRL_CMD_GPU_QUERY_COMPUTE_MODE_RULES = 0x20800131 NV2080_CTRL_CMD_GPU_QUERY_ECC_CONFIGURATION = 0x20800133 NV2080_CTRL_CMD_GPU_GET_OEM_BOARD_INFO = 0x2080013f NV2080_CTRL_CMD_GPU_ACQUIRE_COMPUTE_MODE_RESERVATION = 0x20800145 // undocumented; paramSize == 0 NV2080_CTRL_CMD_GPU_RELEASE_COMPUTE_MODE_RESERVATION = 0x20800146 // undocumented; paramSize == 0 NV2080_CTRL_CMD_GPU_GET_GID_INFO = 0x2080014a NV2080_CTRL_CMD_GPU_GET_INFOROM_OBJECT_VERSION = 0x2080014b NV2080_CTRL_CMD_GPU_GET_INFOROM_IMAGE_VERSION = 0x20800156 NV2080_CTRL_CMD_GPU_QUERY_INFOROM_ECC_SUPPORT = 0x20800157 NV2080_CTRL_CMD_GPU_GET_ENGINES_V2 = 0x20800170 NV2080_CTRL_CMD_GPU_GET_ACTIVE_PARTITION_IDS = 0x2080018b NV2080_CTRL_CMD_GPU_GET_PIDS = 0x2080018d NV2080_CTRL_CMD_GPU_GET_PID_INFO = 0x2080018e NV2080_CTRL_CMD_GPU_GET_COMPUTE_POLICY_CONFIG = 0x20800195 NV2080_CTRL_CMD_GET_GPU_FABRIC_PROBE_INFO = 0x208001a3 )
From src/common/sdk/nvidia/inc/ctrl/ctrl2080/ctrl2080gpu.h:
const ( NV2080_CTRL_CMD_GR_GET_INFO = 0x20801201 NV2080_CTRL_CMD_GR_SET_CTXSW_PREEMPTION_MODE = 0x20801210 NV2080_CTRL_CMD_GR_GET_CTX_BUFFER_SIZE = 0x20801218 NV2080_CTRL_CMD_GR_GET_GLOBAL_SM_ORDER = 0x2080121b NV2080_CTRL_CMD_GR_GET_CAPS_V2 = 0x20801227 NV2080_CTRL_CMD_GR_GET_GPC_MASK = 0x2080122a NV2080_CTRL_CMD_GR_GET_TPC_MASK = 0x2080122b NV2080_CTRL_CMD_GR_GET_SM_ISSUE_RATE_MODIFIER = 0x20801230 )
From src/common/sdk/nvidia/inc/ctrl/ctrl2080/ctrl2080gr.h:
const ( NV2080_CTRL_CMD_MC_GET_ARCH_INFO = 0x20801701 NV2080_CTRL_CMD_MC_SERVICE_INTERRUPTS = 0x20801702 )
From src/common/sdk/nvidia/inc/ctrl/ctrl2080/ctrl2080mc.h:
const ( NV2080_CTRL_CMD_NVLINK_GET_NVLINK_CAPS = 0x20803001 NV2080_CTRL_CMD_NVLINK_GET_NVLINK_STATUS = 0x20803002 )
From src/common/sdk/nvidia/inc/ctrl/ctrl2080/ctrl2080nvlink.h:
const ( NV2080_CTRL_CMD_PERF_BOOST = 0x2080200a NV2080_CTRL_CMD_PERF_GET_CURRENT_PSTATE = 0x20802068 )
From src/common/sdk/nvidia/inc/ctrl/ctrl2080/ctrl2080perf.h:
const ( NV2080_CTRL_CMD_RC_GET_WATCHDOG_INFO = 0x20802209 NV2080_CTRL_CMD_RC_RELEASE_WATCHDOG_REQUESTS = 0x2080220c NV2080_CTRL_CMD_RC_SOFT_DISABLE_WATCHDOG = 0x20802210 )
From src/common/sdk/nvidia/inc/ctrl/ctrl2080/ctrl2080rc.h:
const ( NV2080_CTRL_CMD_TIMER_GET_GPU_CPU_TIME_CORRELATION_INFO = 0x20800406 NV2080_CTRL_CMD_TIMER_SET_GR_TICK_FREQ = 0x20800407 )
From src/common/sdk/nvidia/inc/ctrl/ctrl2080/ctrl2080tmr.h:
const ( NV503C_CTRL_CMD_REGISTER_VA_SPACE = 0x503c0102 NV503C_CTRL_CMD_REGISTER_VIDMEM = 0x503c0104 NV503C_CTRL_CMD_UNREGISTER_VIDMEM = 0x503c0105 )
From src/common/sdk/nvidia/inc/ctrl/ctrl503c.h:
const ( NV83DE_CTRL_CMD_DEBUG_SET_EXCEPTION_MASK = 0x83de0309 NV83DE_CTRL_CMD_DEBUG_READ_ALL_SM_ERROR_STATES = 0x83de030c NV83DE_CTRL_CMD_DEBUG_CLEAR_ALL_SM_ERROR_STATES = 0x83de0310 )
From src/common/sdk/nvidia/inc/ctrl/ctrl83de/ctrl83dedebug.h:
const ( NVC36F_CTRL_GET_CLASS_ENGINEID = 0xc36f0101 NVC36F_CTRL_CMD_GPFIFO_GET_WORK_SUBMIT_TOKEN = 0xc36f0108 )
From src/common/sdk/nvidia/inc/ctrl/ctrlc36f.h:
const ( NV906F_CTRL_GET_CLASS_ENGINEID = 0x906f0101 NV906F_CTRL_CMD_RESET_CHANNEL = 0x906f0102 )
From src/common/sdk/nvidia/inc/ctrl/ctrl906f.h:
const ( NVA06C_CTRL_CMD_GPFIFO_SCHEDULE = 0xa06c0101 NVA06C_CTRL_CMD_SET_TIMESLICE = 0xa06c0103 NVA06C_CTRL_CMD_PREEMPT = 0xa06c0105 )
From src/common/sdk/nvidia/inc/ctrl/ctrla06c.h:
const ( NV_CONF_COMPUTE_CTRL_CMD_SYSTEM_GET_CAPABILITIES = 0xcb330101 NV_CONF_COMPUTE_CTRL_CMD_SYSTEM_GET_GPUS_STATE = 0xcb330104 NV_CONF_COMPUTE_CTRL_CMD_GPU_GET_NUM_SECURE_CHANNELS = 0xcb33010b NV_CONF_COMPUTE_CTRL_CMD_GPU_GET_KEY_ROTATION_STATE = 0xcb33010c )
From src/common/sdk/nvidia/inc/ctrl/ctrlcb33.h:
const ( // From kernel-open/common/inc/nv-ioctl-numbers.h: NV_IOCTL_BASE = 200 NV_ESC_CARD_INFO = NV_IOCTL_BASE + 0 NV_ESC_REGISTER_FD = NV_IOCTL_BASE + 1 NV_ESC_ALLOC_OS_EVENT = NV_IOCTL_BASE + 6 NV_ESC_FREE_OS_EVENT = NV_IOCTL_BASE + 7 NV_ESC_CHECK_VERSION_STR = NV_IOCTL_BASE + 10 NV_ESC_ATTACH_GPUS_TO_FD = NV_IOCTL_BASE + 12 NV_ESC_SYS_PARAMS = NV_IOCTL_BASE + 14 NV_ESC_WAIT_OPEN_COMPLETE = NV_IOCTL_BASE + 18 // From kernel-open/common/inc/nv-ioctl-numa.h: NV_ESC_NUMA_INFO = NV_IOCTL_BASE + 15 // From src/nvidia/arch/nvalloc/unix/include/nv_escape.h: NV_ESC_RM_ALLOC_MEMORY = 0x27 NV_ESC_RM_FREE = 0x29 NV_ESC_RM_CONTROL = 0x2a NV_ESC_RM_ALLOC = 0x2b NV_ESC_RM_DUP_OBJECT = 0x34 NV_ESC_RM_SHARE = 0x35 NV_ESC_RM_VID_HEAP_CONTROL = 0x4a NV_ESC_RM_MAP_MEMORY = 0x4e NV_ESC_RM_UNMAP_MEMORY = 0x4f NV_ESC_RM_UPDATE_DEVICE_MAPPING_INFO = 0x5e )
Frontend ioctl numbers. Note that these are only the IOC_NR part of the ioctl command.
const ( NVOS32_ATTR_LOCATION_SHIFT = 25 NVOS32_ATTR_LOCATION_MASK = 0x3 NVOS32_ATTR_LOCATION_VIDMEM = 0 )
Bitfields in NVOS32AllocSize.Attr:
const ( NVOS32_ATTR2_USE_EGM_SHIFT = 24 NVOS32_ATTR2_USE_EGM_MASK = 0x1 NVOS32_ATTR2_USE_EGM_FALSE = 0 NVOS32_ATTR2_USE_EGM_TRUE = 1 )
Bitfields in NVOS32AllocSize.Attr2:
const ( NV_MAJOR_DEVICE_NUMBER = 195 // from kernel-open/common/inc/nv.h NV_CONTROL_DEVICE_MINOR = 255 // from kernel-open/common/inc/nv-linux.h NVIDIA_UVM_PRIMARY_MINOR_NUMBER = 0 // from kernel-open/nvidia-uvm/uvm_common.h )
Device numbers.
const ( NV_MAX_DEVICES = 32 NV_MAX_SUBDEVICES = 8 )
From src/common/sdk/nvidia/inc/nvlimits.h:
const ( CC_CHAN_ALLOC_IV_SIZE_DWORD = 3 CC_CHAN_ALLOC_NONCE_SIZE_DWORD = 8 )
From src/common/sdk/nvidia/inc/alloc/alloc_channel.h.
const ( NV_OK = 0x00000000 NV_ERR_INVALID_ADDRESS = 0x0000001e NV_ERR_INVALID_ARGUMENT = 0x0000001f NV_ERR_INVALID_CLASS = 0x00000022 NV_ERR_INVALID_LIMIT = 0x0000002e NV_ERR_NOT_SUPPORTED = 0x00000056 )
Status codes, from src/common/sdk/nvidia/inc/nvstatuscodes.h.
const ( // From kernel-open/nvidia-uvm/uvm_linux_ioctl.h: UVM_INITIALIZE = 0x30000001 UVM_DEINITIALIZE = 0x30000002 // From kernel-open/nvidia-uvm/uvm_ioctl.h: UVM_CREATE_RANGE_GROUP = 23 UVM_DESTROY_RANGE_GROUP = 24 UVM_REGISTER_GPU_VASPACE = 25 UVM_UNREGISTER_GPU_VASPACE = 26 UVM_REGISTER_CHANNEL = 27 UVM_UNREGISTER_CHANNEL = 28 UVM_ENABLE_PEER_ACCESS = 29 UVM_DISABLE_PEER_ACCESS = 30 UVM_SET_RANGE_GROUP = 31 UVM_MAP_EXTERNAL_ALLOCATION = 33 UVM_FREE = 34 UVM_REGISTER_GPU = 37 UVM_UNREGISTER_GPU = 38 UVM_PAGEABLE_MEM_ACCESS = 39 UVM_SET_PREFERRED_LOCATION = 42 UVM_UNSET_PREFERRED_LOCATION = 43 UVM_DISABLE_READ_DUPLICATION = 45 UVM_UNSET_ACCESSED_BY = 47 UVM_MIGRATE = 51 UVM_MIGRATE_RANGE_GROUP = 53 UVM_TOOLS_READ_PROCESS_MEMORY = 62 UVM_TOOLS_WRITE_PROCESS_MEMORY = 63 UVM_MAP_DYNAMIC_PARALLELISM_REGION = 65 UVM_UNMAP_EXTERNAL = 66 UVM_ALLOC_SEMAPHORE_POOL = 68 UVM_VALIDATE_VA_RANGE = 72 UVM_CREATE_EXTERNAL_RANGE = 73 UVM_MM_INITIALIZE = 75 )
UVM ioctl commands.
const ( UVM_MAX_GPUS = NV_MAX_DEVICES UVM_MAX_GPUS_V2 = NV_MAX_DEVICES * NV_MAX_SUBDEVICES )
const (
NV0000_CTRL_CMD_SYNC_GPU_BOOST_GROUP_INFO = 0xa04
)
From src/common/sdk/nvidia/inc/ctrl/ctrl0000/ctrl0000syncgpuboost.h:
const (
NV0041_CTRL_CMD_GET_SURFACE_INFO = 0x410110
)
From src/common/sdk/nvidia/inc/ctrl/ctrl0041.h
const (
NV0080_CTRL_CMD_FB_GET_CAPS_V2 = 0x801307
)
From src/common/sdk/nvidia/inc/ctrl/ctrl0080/ctrl0080fb.h:
const (
NV0080_CTRL_CMD_FIFO_GET_CHANNELLIST = 0x80170d
)
From src/common/sdk/nvidia/inc/ctrl/ctrl0080/ctrl0080fifo.h:
const (
NV0080_CTRL_CMD_HOST_GET_CAPS_V2 = 0x801402
)
From src/common/sdk/nvidia/inc/ctrl/ctrl0080/ctrl0080host.h:
const (
NV0080_CTRL_CMD_PERF_CUDA_LIMIT_SET_CONTROL = 0x801909
)
From src/common/sdk/nvidia/inc/ctrl/ctrl0080/ctrl0080perf.h:
const (
NV00F8_CTRL_CMD_ATTACH_MEM = 0xf80103
)
From src/common/sdk/nvidia/inc/ctrl/ctrl00f8.h:
const (
NV2080_CTRL_CMD_BIOS_GET_INFO = 0x20800802
)
From src/common/sdk/nvidia/inc/ctrl/ctrl2080/ctrl2080bios.h:
const (
NV2080_CTRL_CMD_CE_GET_ALL_CAPS = 0x20802a0a
)
From src/common/sdk/nvidia/inc/ctrl/ctrl2080/ctrl2080ce.h:
const (
NV2080_CTRL_CMD_EVENT_SET_NOTIFICATION = 0x20800301
)
From src/common/sdk/nvidia/inc/ctrl/ctrl2080/ctrl2080event.h:
const (
NV2080_CTRL_CMD_FB_GET_INFO_V2 = 0x20801303
)
From src/common/sdk/nvidia/inc/ctrl/ctrl2080/ctrl2080fb.h:
const (
NV2080_CTRL_CMD_FLCN_GET_CTX_BUFFER_SIZE = 0x20803125
)
From src/common/sdk/nvidia/inc/ctrl/ctrl2080/ctrl2080flcn.h:
const (
NV2080_CTRL_CMD_GRMGR_GET_GR_FS_INFO = 0x20803801
)
From src/common/sdk/nvidia/inc/ctrl/ctrl2080/ctrl2080grmgr.h:
const (
NV2080_CTRL_CMD_GSP_GET_FEATURES = 0x20803601
)
From src/common/sdk/nvidia/inc/ctrl/ctrl2080/ctrl2080gsp.h:
const (
NV90E6_CTRL_CMD_MASTER_GET_VIRTUAL_FUNCTION_ERROR_CONT_INTR_MASK = 0x90e60102
)
From src/common/sdk/nvidia/inc/ctrl/ctrl90e6.h:
const (
NVA06F_CTRL_CMD_GPFIFO_SCHEDULE = 0xa06f0103
)
From src/common/sdk/nvidia/inc/ctrl/ctrla06f/ctrla06fgpfifo.h:
const (
NVC56F_CTRL_CMD_GET_KMB = 0xc56f010b
)
From src/common/sdk/nvidia/inc/ctrl/ctrlc56f.h:
const (
NVOS32_ALLOC_FLAGS_VIRTUAL = 0x00080000
)
Flags in NVOS32AllocSize.Flags:
const (
NVOS32_FUNCTION_ALLOC_SIZE = 2
)
Possible values for NVOS32Parameters.Function:
const NV_IOCTL_MAGIC = uint32('F')
NV_IOCTL_MAGIC is the "canonical" IOC_TYPE for frontend ioctls. The driver ignores IOC_TYPE, allowing any value to be passed.
const (
NV_MEM_EXPORT_UUID_LEN = 16
)
From src/common/sdk/nvidia/inc/class/cl00e0.h
const ( // RMAPI_PARAM_COPY_MAX_PARAMS_SIZE is the size limit imposed while copying // "embedded pointers" in rmapi parameter structs. // See src/nvidia/src/kernel/rmapi/param_copy.c:rmapiParamsAcquire(). RMAPI_PARAM_COPY_MAX_PARAMS_SIZE = 1 * 1024 * 1024 )
From src/nvidia/inc/kernel/rmapi/param_copy.h:
const (
RM_GSS_LEGACY_MASK = 0x00008000
)
From src/nvidia/interface/deprecated/rmapi_deprecated.h:
const SDK_RS_ACCESS_MAX_LIMBS = 1
const (
UVM_INIT_FLAGS_MULTI_PROCESS_SHARING_MODE = 0x2
)
UVM_INITIALIZE_PARAMS flags, from kernel-open/nvidia-uvm/uvm_types.h.
Variables ¶
var ( SizeofIoctlRegisterFD = uint32((*IoctlRegisterFD)(nil).SizeBytes()) SizeofIoctlAllocOSEvent = uint32((*IoctlAllocOSEvent)(nil).SizeBytes()) SizeofIoctlFreeOSEvent = uint32((*IoctlFreeOSEvent)(nil).SizeBytes()) SizeofRMAPIVersion = uint32((*RMAPIVersion)(nil).SizeBytes()) SizeofIoctlSysParams = uint32((*IoctlSysParams)(nil).SizeBytes()) SizeofIoctlWaitOpenComplete = uint32((*IoctlWaitOpenComplete)(nil).SizeBytes()) SizeofIoctlNVOS02ParametersWithFD = uint32((*IoctlNVOS02ParametersWithFD)(nil).SizeBytes()) SizeofNVOS00Parameters = uint32((*NVOS00Parameters)(nil).SizeBytes()) SizeofNVOS21Parameters = uint32((*NVOS21Parameters)(nil).SizeBytes()) SizeofIoctlNVOS33ParametersWithFD = uint32((*IoctlNVOS33ParametersWithFD)(nil).SizeBytes()) SizeofNVOS55Parameters = uint32((*NVOS55Parameters)(nil).SizeBytes()) SizeofNVOS57Parameters = uint32((*NVOS57Parameters)(nil).SizeBytes()) SizeofNVOS32Parameters = uint32((*NVOS32Parameters)(nil).SizeBytes()) SizeofNVOS34Parameters = uint32((*NVOS34Parameters)(nil).SizeBytes()) SizeofNVOS54Parameters = uint32((*NVOS54Parameters)(nil).SizeBytes()) SizeofNVOS56Parameters = uint32((*NVOS56Parameters)(nil).SizeBytes()) SizeofNVOS64Parameters = uint32((*NVOS64Parameters)(nil).SizeBytes()) )
Frontend ioctl parameter struct sizes.
var CtrlXxxInfoSize = uint32((*NVXXXX_CTRL_XXX_INFO)(nil).SizeBytes())
CtrlXxxInfoSize is sizeof(NVXXXX_CTRL_XXX_INFO).
var NV01_NULL_OBJECT = Handle{0}
NV01_NULL_OBJECT is a Handle representing no object.
Functions ¶
This section is empty.
Types ¶
type ClassID ¶
type ClassID uint32
ClassID is a client class ID, in the sense of src/nvidia/src/kernel/rmapi/resource_desc.h:RS_RESOURCE_DESC::externalClassID.
+marshal
type Handle ¶
type Handle struct {
Val uint32 `nvproxy:"NvHandle"`
}
Handle is NvHandle, from src/common/sdk/nvidia/inc/nvtypes.h.
+marshal +stateify savable
type HasCtrlInfoList ¶
HasCtrlInfoList is a type constraint for parameter structs containing a list of NVXXXX_CTRL_XXX_INFO and are simple otherwise.
type HasFrontendFD ¶
HasFrontendFD is a type constraint for parameter structs containing a frontend FD field. This is necessary because, as of this writing (Go 1.20), there is no way to enable field access using a Go type constraint.
type IoctlAllocOSEvent ¶
type IoctlAllocOSEvent struct { HClient Handle `nvproxy:"nv_ioctl_alloc_os_event_t"` HDevice Handle FD uint32 Status uint32 }
IoctlAllocOSEvent is the parameter type for NV_ESC_ALLOC_OS_EVENT.
+marshal
func (*IoctlAllocOSEvent) GetFrontendFD ¶
func (p *IoctlAllocOSEvent) GetFrontendFD() int32
GetFrontendFD implements HasFrontendFD.GetFrontendFD.
func (*IoctlAllocOSEvent) SetFrontendFD ¶
func (p *IoctlAllocOSEvent) SetFrontendFD(fd int32)
SetFrontendFD implements HasFrontendFD.SetFrontendFD.
type IoctlFreeOSEvent ¶
type IoctlFreeOSEvent struct { HClient Handle `nvproxy:"nv_ioctl_free_os_event_t"` HDevice Handle FD uint32 Status uint32 }
IoctlFreeOSEvent is the parameter type for NV_ESC_FREE_OS_EVENT.
+marshal
func (*IoctlFreeOSEvent) GetFrontendFD ¶
func (p *IoctlFreeOSEvent) GetFrontendFD() int32
GetFrontendFD implements HasFrontendFD.GetFrontendFD.
func (*IoctlFreeOSEvent) SetFrontendFD ¶
func (p *IoctlFreeOSEvent) SetFrontendFD(fd int32)
SetFrontendFD implements HasFrontendFD.SetFrontendFD.
type IoctlNVOS02ParametersWithFD ¶
type IoctlNVOS02ParametersWithFD struct { Params NVOS02Parameters `nvproxy:"nv_ioctl_nvos02_parameters_with_fd"` FD int32 Pad0 [4]byte }
IoctlNVOS02ParametersWithFD is the parameter type for NV_ESC_RM_ALLOC_MEMORY.
+marshal
type IoctlNVOS33ParametersWithFD ¶
type IoctlNVOS33ParametersWithFD struct { Params NVOS33Parameters `nvproxy:"nv_ioctl_nvos33_parameters_with_fd"` FD int32 Pad0 [4]byte }
IoctlNVOS33ParametersWithFD is the parameter type for NV_ESC_RM_MAP_MEMORY, from src/nvidia/arch/nvalloc/unix/include/nv-unix-nvos-params-wrappers.h.
+marshal
type IoctlRegisterFD ¶
type IoctlRegisterFD struct {
CtlFD int32 `nvproxy:"nv_ioctl_register_fd_t"`
}
IoctlRegisterFD is the parameter type for NV_ESC_REGISTER_FD.
+marshal
type IoctlSysParams ¶
type IoctlSysParams struct {
MemblockSize uint64 `nvproxy:"nv_ioctl_sys_params_t"`
}
IoctlSysParams is the parameter type for NV_ESC_SYS_PARAMS.
+marshal
type IoctlWaitOpenComplete ¶
type IoctlWaitOpenComplete struct { Rc int32 `nvproxy:"nv_ioctl_wait_open_complete_t"` AdapterStatus uint32 }
IoctlWaitOpenComplete is the parameter type for NV_ESC_WAIT_OPEN_COMPLETE.
+marshal
type NV0000_CTRL_GPU_GET_ID_INFO_PARAMS ¶
type NV0000_CTRL_GPU_GET_ID_INFO_PARAMS struct { GpuID uint32 `nvproxy:"same"` GpuFlags uint32 DeviceInstance uint32 SubDeviceInstance uint32 SzName P64 SliStatus uint32 BoardID uint32 GpuInstance uint32 NumaID int32 }
NV0000_CTRL_GPU_GET_ID_INFO_PARAMS is the param type for NV0000_CTRL_CMD_GPU_GET_ID_INFO, from src/common/sdk/nvidia/inc/ctrl/ctrl0000/ctrl0000gpu.h.
+marshal
type NV0000_CTRL_OS_UNIX_EXPORT_OBJECT ¶
type NV0000_CTRL_OS_UNIX_EXPORT_OBJECT struct { Type uint32 // enum NV0000_CTRL_OS_UNIX_EXPORT_OBJECT_TYPE Data [12]byte // union }
+marshal
type NV0000_CTRL_OS_UNIX_EXPORT_OBJECT_TO_FD_PARAMS ¶
type NV0000_CTRL_OS_UNIX_EXPORT_OBJECT_TO_FD_PARAMS struct { Object NV0000_CTRL_OS_UNIX_EXPORT_OBJECT `nvproxy:"same"` FD int32 Flags uint32 }
+marshal
func (*NV0000_CTRL_OS_UNIX_EXPORT_OBJECT_TO_FD_PARAMS) GetFrontendFD ¶
func (p *NV0000_CTRL_OS_UNIX_EXPORT_OBJECT_TO_FD_PARAMS) GetFrontendFD() int32
GetFrontendFD implements HasFrontendFD.GetFrontendFD.
func (*NV0000_CTRL_OS_UNIX_EXPORT_OBJECT_TO_FD_PARAMS) SetFrontendFD ¶
func (p *NV0000_CTRL_OS_UNIX_EXPORT_OBJECT_TO_FD_PARAMS) SetFrontendFD(fd int32)
SetFrontendFD implements HasFrontendFD.SetFrontendFD.
type NV0000_CTRL_OS_UNIX_GET_EXPORT_OBJECT_INFO_PARAMS ¶
type NV0000_CTRL_OS_UNIX_GET_EXPORT_OBJECT_INFO_PARAMS struct { FD int32 `nvproxy:"same"` DeviceInstance uint32 MaxObjects uint16 Metadata [NV0000_OS_UNIX_EXPORT_OBJECT_FD_BUFFER_SIZE]uint8 Pad [2]byte }
+marshal
func (*NV0000_CTRL_OS_UNIX_GET_EXPORT_OBJECT_INFO_PARAMS) GetFrontendFD ¶
func (p *NV0000_CTRL_OS_UNIX_GET_EXPORT_OBJECT_INFO_PARAMS) GetFrontendFD() int32
GetFrontendFD implements HasFrontendFD.GetFrontendFD.
func (*NV0000_CTRL_OS_UNIX_GET_EXPORT_OBJECT_INFO_PARAMS) SetFrontendFD ¶
func (p *NV0000_CTRL_OS_UNIX_GET_EXPORT_OBJECT_INFO_PARAMS) SetFrontendFD(fd int32)
SetFrontendFD implements HasFrontendFD.SetFrontendFD.
type NV0000_CTRL_OS_UNIX_GET_EXPORT_OBJECT_INFO_PARAMS_V545 ¶
type NV0000_CTRL_OS_UNIX_GET_EXPORT_OBJECT_INFO_PARAMS_V545 struct { FD int32 `nvproxy:"NV0000_CTRL_OS_UNIX_GET_EXPORT_OBJECT_INFO_PARAMS"` DeviceInstance uint32 GpuInstanceID uint32 MaxObjects uint16 Metadata [NV0000_OS_UNIX_EXPORT_OBJECT_FD_BUFFER_SIZE]uint8 Pad [2]byte }
+marshal
func (*NV0000_CTRL_OS_UNIX_GET_EXPORT_OBJECT_INFO_PARAMS_V545) GetFrontendFD ¶
func (p *NV0000_CTRL_OS_UNIX_GET_EXPORT_OBJECT_INFO_PARAMS_V545) GetFrontendFD() int32
GetFrontendFD implements HasFrontendFD.GetFrontendFD.
func (*NV0000_CTRL_OS_UNIX_GET_EXPORT_OBJECT_INFO_PARAMS_V545) SetFrontendFD ¶
func (p *NV0000_CTRL_OS_UNIX_GET_EXPORT_OBJECT_INFO_PARAMS_V545) SetFrontendFD(fd int32)
SetFrontendFD implements HasFrontendFD.SetFrontendFD.
type NV0000_CTRL_OS_UNIX_IMPORT_OBJECT_FROM_FD_PARAMS ¶
type NV0000_CTRL_OS_UNIX_IMPORT_OBJECT_FROM_FD_PARAMS struct { FD int32 `nvproxy:"same"` Object NV0000_CTRL_OS_UNIX_EXPORT_OBJECT }
+marshal
func (*NV0000_CTRL_OS_UNIX_IMPORT_OBJECT_FROM_FD_PARAMS) GetFrontendFD ¶
func (p *NV0000_CTRL_OS_UNIX_IMPORT_OBJECT_FROM_FD_PARAMS) GetFrontendFD() int32
GetFrontendFD implements HasFrontendFD.GetFrontendFD.
func (*NV0000_CTRL_OS_UNIX_IMPORT_OBJECT_FROM_FD_PARAMS) SetFrontendFD ¶
func (p *NV0000_CTRL_OS_UNIX_IMPORT_OBJECT_FROM_FD_PARAMS) SetFrontendFD(fd int32)
SetFrontendFD implements HasFrontendFD.SetFrontendFD.
type NV0000_CTRL_SYSTEM_GET_BUILD_VERSION_PARAMS ¶
type NV0000_CTRL_SYSTEM_GET_BUILD_VERSION_PARAMS struct { SizeOfStrings uint32 `nvproxy:"same"` Pad [4]byte PDriverVersionBuffer P64 PVersionBuffer P64 PTitleBuffer P64 ChangelistNumber uint32 OfficialChangelistNumber uint32 }
+marshal
type NV0000_CTRL_SYSTEM_GET_P2P_CAPS_PARAMS ¶
type NV0000_CTRL_SYSTEM_GET_P2P_CAPS_PARAMS struct { GpuIDs [NV0000_CTRL_SYSTEM_MAX_ATTACHED_GPUS]uint32 `nvproxy:"same"` GpuCount uint32 P2PCaps uint32 P2POptimalReadCEs uint32 P2POptimalWriteCEs uint32 P2PCapsStatus [NV0000_CTRL_P2P_CAPS_INDEX_TABLE_SIZE]uint8 BusPeerIDs P64 // contains filtered or unexported fields }
NV0000_CTRL_SYSTEM_GET_P2P_CAPS_PARAMS is the param type for NV0000_CTRL_CMD_SYSTEM_GET_P2P_CAPS, from src/common/sdk/nvidia/inc/ctrl/ctrl0000/ctrl0000system.h.
+marshal
type NV0000_CTRL_SYSTEM_GET_P2P_CAPS_PARAMS_V550 ¶
type NV0000_CTRL_SYSTEM_GET_P2P_CAPS_PARAMS_V550 struct { NV0000_CTRL_SYSTEM_GET_P2P_CAPS_PARAMS `nvproxy:"NV0000_CTRL_SYSTEM_GET_P2P_CAPS_PARAMS"` BusEgmPeerIDs P64 }
NV0000_CTRL_SYSTEM_GET_P2P_CAPS_PARAMS_V550 is the updated version of NV0000_CTRL_SYSTEM_GET_P2P_CAPS_PARAMS since 550.40.07.
+marshal
type NV0005_ALLOC_PARAMETERS ¶
type NV0005_ALLOC_PARAMETERS struct { HParentClient Handle `nvproxy:"same"` HSrcResource Handle HClass uint32 NotifyIndex uint32 Data P64 // actually FD for NV01_EVENT_OS_EVENT, see src/nvidia/src/kernel/rmapi/event.c:eventConstruct_IMPL() => src/nvidia/arch/nvalloc/unix/src/os.c:osUserHandleToKernelPtr() }
NV0005_ALLOC_PARAMETERS is the alloc params type for NV01_EVENT_OS_EVENT, from src/common/sdk/nvidia/inc/class/cl0005.h.
+marshal
type NV0041_CTRL_GET_SURFACE_INFO_PARAMS ¶
type NV0041_CTRL_GET_SURFACE_INFO_PARAMS struct { SurfaceInfoListSize uint32 `nvproxy:"same"` Pad [4]byte SurfaceInfoList P64 }
+marshal
func (*NV0041_CTRL_GET_SURFACE_INFO_PARAMS) CtrlInfoList ¶
func (p *NV0041_CTRL_GET_SURFACE_INFO_PARAMS) CtrlInfoList() P64
CtrlInfoList implements HasCtrlInfoList.CtrlInfoList.
func (*NV0041_CTRL_GET_SURFACE_INFO_PARAMS) ListSize ¶
func (p *NV0041_CTRL_GET_SURFACE_INFO_PARAMS) ListSize() uint32
ListSize implements HasCtrlInfoList.ListSize.
func (*NV0041_CTRL_GET_SURFACE_INFO_PARAMS) SetCtrlInfoList ¶
func (p *NV0041_CTRL_GET_SURFACE_INFO_PARAMS) SetCtrlInfoList(ptr P64)
SetCtrlInfoList implements HasCtrlInfoList.SetCtrlInfoList.
type NV0080_ALLOC_PARAMETERS ¶
type NV0080_ALLOC_PARAMETERS struct { DeviceID uint32 `nvproxy:"same"` HTargetClient Handle HTargetDevice Handle Flags uint32 Pad0 [4]byte VASpaceSize uint64 VAStartInternal uint64 VALimitInternal uint64 VAMode uint32 Pad1 [4]byte }
NV0080_ALLOC_PARAMETERS is the alloc params type for NV01_DEVICE_0, from src/common/sdk/nvidia/inc/class/cl0080.h.
+marshal
type NV0080_CTRL_FIFO_GET_CHANNELLIST_PARAMS ¶
type NV0080_CTRL_FIFO_GET_CHANNELLIST_PARAMS struct { NumChannels uint32 `nvproxy:"same"` Pad [4]byte PChannelHandleList P64 PChannelList P64 }
+marshal
type NV0080_CTRL_GPU_GET_CLASSLIST_PARAMS ¶
type NV0080_CTRL_GPU_GET_CLASSLIST_PARAMS struct { NumClasses uint32 `nvproxy:"same"` Pad [4]byte ClassList P64 }
+marshal
type NV0080_CTRL_GR_ROUTE_INFO ¶
+marshal
type NV00DE_ALLOC_PARAMETERS ¶
type NV00DE_ALLOC_PARAMETERS struct {
Reserved uint32 `nvproxy:"same"`
}
NV00DE_ALLOC_PARAMETERS is the alloc param type for RM_USER_SHARED_DATA, from src/common/sdk/nvidia/inc/class/cl00de.h.
+marshal
type NV00DE_ALLOC_PARAMETERS_V545 ¶
type NV00DE_ALLOC_PARAMETERS_V545 struct {
PolledDataMask uint64 `nvproxy:"NV00DE_ALLOC_PARAMETERS"`
}
NV00DE_ALLOC_PARAMETERS_V545 is the updated version of NV00DE_ALLOC_PARAMETERS since 545.23.06.
+marshal
type NV00F8_ALLOCATION_PARAMETERS ¶
type NV00F8_ALLOCATION_PARAMETERS struct { Alignment uint64 `nvproxy:"same"` AllocSize uint64 PageSize uint64 AllocFlags uint32 Map nv00f8Map // contains filtered or unexported fields }
NV00F8_ALLOCATION_PARAMETERS is the alloc param type for NV_MEMORY_FABRIC, from src/common/sdk/nvidia/inc/class/cl00f8.h.
+marshal
type NV00FD_ALLOCATION_PARAMETERS ¶
type NV00FD_ALLOCATION_PARAMETERS struct { Alignment uint64 `nvproxy:"same"` AllocSize uint64 PageSize uint32 AllocFlags uint32 NumGPUs uint32 POsEvent P64 // contains filtered or unexported fields }
NV00FD_ALLOCATION_PARAMETERS is the alloc param type for NV_MEMORY_MULTICAST_FABRIC from src/common/sdk/nvidia/inc/class/cl00fd.h
+marshal
type NV00FD_ALLOCATION_PARAMETERS_V545 ¶
type NV00FD_ALLOCATION_PARAMETERS_V545 struct { ExpPacket NV_EXPORT_MEM_PACKET `nvproxy:"NV00FD_ALLOCATION_PARAMETERS"` Index uint16 NV00FD_ALLOCATION_PARAMETERS // contains filtered or unexported fields }
NV00FD_ALLOCATION_PARAMETERS_V545 is the updated version of NV00FD_ALLOCATION_PARAMETERS since 545.23.06.
+marshal
type NV00FD_CTRL_ATTACH_GPU_PARAMS ¶
type NV00FD_CTRL_ATTACH_GPU_PARAMS struct { HSubDevice Handle `nvproxy:"same"` Flags uint32 DevDescriptor uint64 }
+marshal
type NV2080_ALLOC_PARAMETERS ¶
type NV2080_ALLOC_PARAMETERS struct {
SubDeviceID uint32 `nvproxy:"same"`
}
NV2080_ALLOC_PARAMETERS is the alloc params type for NV20_SUBDEVICE_0, from src/common/sdk/nvidia/inc/class/cl2080.h.
+marshal
type NV2080_CTRL_BIOS_GET_INFO_PARAMS ¶
type NV2080_CTRL_BIOS_GET_INFO_PARAMS struct { BiosInfoListSize uint32 `nvproxy:"same"` Pad [4]byte BiosInfoList P64 }
+marshal
func (*NV2080_CTRL_BIOS_GET_INFO_PARAMS) CtrlInfoList ¶
func (p *NV2080_CTRL_BIOS_GET_INFO_PARAMS) CtrlInfoList() P64
CtrlInfoList implements HasCtrlInfoList.CtrlInfoList.
func (*NV2080_CTRL_BIOS_GET_INFO_PARAMS) ListSize ¶
func (p *NV2080_CTRL_BIOS_GET_INFO_PARAMS) ListSize() uint32
ListSize implements HasCtrlInfoList.ListSize.
func (*NV2080_CTRL_BIOS_GET_INFO_PARAMS) SetCtrlInfoList ¶
func (p *NV2080_CTRL_BIOS_GET_INFO_PARAMS) SetCtrlInfoList(ptr P64)
SetCtrlInfoList implements HasCtrlInfoList.SetCtrlInfoList.
type NV2080_CTRL_FIFO_DISABLE_CHANNELS_PARAMS ¶
type NV2080_CTRL_FIFO_DISABLE_CHANNELS_PARAMS struct { BDisable uint8 `nvproxy:"same"` Pad1 [3]byte NumChannels uint32 BOnlyDisableScheduling uint8 BRewindGpPut uint8 Pad2 [6]byte PRunlistPreemptEvent P64 HClientList [NV2080_CTRL_FIFO_DISABLE_CHANNELS_MAX_ENTRIES]Handle HChannelList [NV2080_CTRL_FIFO_DISABLE_CHANNELS_MAX_ENTRIES]Handle }
+marshal
type NV2080_CTRL_GR_GET_INFO_PARAMS ¶
type NV2080_CTRL_GR_GET_INFO_PARAMS struct { GRInfoListSize uint32 `nvproxy:"same"` // in elements Pad [4]byte GRInfoList P64 GRRouteInfo NV0080_CTRL_GR_ROUTE_INFO }
+marshal
func (*NV2080_CTRL_GR_GET_INFO_PARAMS) CtrlInfoList ¶
func (p *NV2080_CTRL_GR_GET_INFO_PARAMS) CtrlInfoList() P64
CtrlInfoList implements HasCtrlInfoList.CtrlInfoList.
func (*NV2080_CTRL_GR_GET_INFO_PARAMS) ListSize ¶
func (p *NV2080_CTRL_GR_GET_INFO_PARAMS) ListSize() uint32
ListSize implements HasCtrlInfoList.ListSize.
func (*NV2080_CTRL_GR_GET_INFO_PARAMS) SetCtrlInfoList ¶
func (p *NV2080_CTRL_GR_GET_INFO_PARAMS) SetCtrlInfoList(ptr P64)
SetCtrlInfoList implements HasCtrlInfoList.SetCtrlInfoList.
type NV2081_ALLOC_PARAMETERS ¶
type NV2081_ALLOC_PARAMETERS struct {
Reserved uint32 `nvproxy:"same"`
}
NV2081_ALLOC_PARAMETERS is the alloc params type for NV2081_BINAPI, from src/common/sdk/nvidia/inc/class/cl2081.h.
+marshal
type NV503B_ALLOC_PARAMETERS ¶
type NV503B_ALLOC_PARAMETERS struct { HSubDevice Handle `nvproxy:"same"` HPeerSubDevice Handle SubDevicePeerIDMask uint32 PeerSubDevicePeerIDMask uint32 MailboxBar1Addr uint64 MailboxTotalSize uint32 Flags uint32 SubDeviceEgmPeerIDMask uint32 PeerSubDeviceEgmPeerIDMask uint32 L2pBar1P2PDmaInfo NV503B_BAR1_P2P_DMA_INFO P2lBar1P2PDmaInfo NV503B_BAR1_P2P_DMA_INFO }
NV503B_ALLOC_PARAMETERS is the alloc params type for NV50_P2P, from src/common/sdk/nvidia/inc/class/cl503b.h.
+marshal
type NV503B_BAR1_P2P_DMA_INFO ¶
NV503B_BAR1_P2P_DMA_INFO from src/common/sdk/nvidia/inc/class/cl503b.h.
+marshal
type NV503C_ALLOC_PARAMETERS ¶
type NV503C_ALLOC_PARAMETERS struct {
Flags uint32 `nvproxy:"same"`
}
NV503C_ALLOC_PARAMETERS is the alloc params type for NV50_THIRD_PARTY_P2P, from src/common/sdk/nvidia/inc/class/cl503c.h.
+marshal
type NV503C_CTRL_REGISTER_VA_SPACE_PARAMS ¶
type NV503C_CTRL_REGISTER_VA_SPACE_PARAMS struct { HVASpace Handle `nvproxy:"same"` Pad [4]byte VASpaceToken uint64 }
+marshal
type NV83DE_ALLOC_PARAMETERS ¶
type NV83DE_ALLOC_PARAMETERS struct { HDebuggerClient_Obsolete Handle `nvproxy:"same"` HAppClient Handle HClass3DObject Handle }
NV83DE_ALLOC_PARAMETERS is the alloc params type for GT200_DEBUGGER, from src/common/sdk/nvidia/inc/class/cl83de.h.
+marshal
type NVB0B5_ALLOCATION_PARAMETERS ¶
NVB0B5_ALLOCATION_PARAMETERS is the alloc param type for TURING_DMA_COPY_A, AMPERE_DMA_COPY_A, and AMPERE_DMA_COPY_B from src/common/sdk/nvidia/inc/class/clb0b5sw.h.
+marshal
type NVOS00Parameters ¶
type NVOS00Parameters struct { HRoot Handle `nvproxy:"NVOS00_PARAMETERS"` HObjectParent Handle HObjectOld Handle Status uint32 }
NVOS00Parameters is the parameter type for NV_ESC_RM_FREE.
+marshal
type NVOS02Parameters ¶
type NVOS02Parameters struct { HRoot Handle `nvproxy:"NVOS02_PARAMETERS"` HObjectParent Handle HObjectNew Handle HClass ClassID Flags uint32 Pad0 [4]byte PMemory P64 // address of application mapping, without indirection Limit uint64 Status uint32 Pad1 [4]byte }
+marshal
type NVOS21Parameters ¶
type NVOS21Parameters struct { HRoot Handle `nvproxy:"NVOS21_PARAMETERS"` HObjectParent Handle HObjectNew Handle HClass ClassID PAllocParms P64 ParamsSize uint32 Status uint32 }
NVOS21Parameters is one possible parameter type for NV_ESC_RM_ALLOC.
+marshal
func (*NVOS21Parameters) FromOS64 ¶
func (n *NVOS21Parameters) FromOS64(other NVOS64Parameters)
FromOS64 implements RmAllocParamType.FromOS64.
func (*NVOS21Parameters) GetHClass ¶
func (n *NVOS21Parameters) GetHClass() ClassID
GetHClass implements RmAllocParamType.GetHClass.
func (*NVOS21Parameters) GetPAllocParms ¶
func (n *NVOS21Parameters) GetPAllocParms() P64
GetPAllocParms implements RmAllocParamType.GetPAllocParms.
func (*NVOS21Parameters) GetPRightsRequested ¶
func (n *NVOS21Parameters) GetPRightsRequested() P64
GetPRightsRequested implements RmAllocParamType.GetPRightsRequested.
func (*NVOS21Parameters) GetPointer ¶
func (n *NVOS21Parameters) GetPointer() uintptr
GetPointer implements RmAllocParamType.GetPointer.
func (*NVOS21Parameters) SetPAllocParms ¶
func (n *NVOS21Parameters) SetPAllocParms(p P64)
SetPAllocParms implements RmAllocParamType.SetPAllocParms.
func (*NVOS21Parameters) SetPRightsRequested ¶
func (n *NVOS21Parameters) SetPRightsRequested(p P64)
SetPRightsRequested implements RmAllocParamType.SetPRightsRequested.
func (*NVOS21Parameters) ToOS64 ¶
func (n *NVOS21Parameters) ToOS64() NVOS64Parameters
ToOS64 implements RmAllocParamType.ToOS64.
type NVOS32AllocSize ¶
type NVOS32AllocSize struct { Owner uint32 HMemory Handle Type uint32 Flags uint32 Attr uint32 Format uint32 ComprCovg uint32 ZcullCovg uint32 PartitionStride uint32 Width uint32 Height uint32 Pad0 [4]byte Size uint64 Alignment uint64 Offset uint64 Limit uint64 Address P64 RangeBegin uint64 RangeEnd uint64 Attr2 uint32 CtagOffset uint32 }
NVOS32AllocSize is the type of NVOS32Parameters.Data for NVOS32_FUNCTION_ALLOC_SIZE.
type NVOS32Parameters ¶
type NVOS32Parameters struct { HRoot Handle `nvproxy:"NVOS32_PARAMETERS"` HObjectParent Handle Function uint32 HVASpace Handle IVCHeapNumber int16 Pad [2]byte Status uint32 Total uint64 Free uint64 Data [144]byte // union }
NVOS32Parameters is the parameter type for NV_ESC_RM_VID_HEAP_CONTROL.
+marshal
type NVOS33Parameters ¶
type NVOS33Parameters struct { HClient Handle `nvproxy:"NVOS33_PARAMETERS"` HDevice Handle HMemory Handle Pad0 [4]byte Offset uint64 Length uint64 PLinearAddress P64 // address of application mapping, without indirection Status uint32 Flags uint32 }
+marshal
type NVOS34Parameters ¶
type NVOS34Parameters struct { HClient Handle `nvproxy:"NVOS34_PARAMETERS"` HDevice Handle HMemory Handle Pad0 [4]byte PLinearAddress P64 // address of application mapping, without indirection Status uint32 Flags uint32 }
NVOS34Parameters is the parameter type for NV_ESC_RM_UNMAP_MEMORY.
+marshal
type NVOS54Parameters ¶
type NVOS54Parameters struct { HClient Handle `nvproxy:"NVOS54_PARAMETERS"` HObject Handle Cmd uint32 Flags uint32 Params P64 ParamsSize uint32 Status uint32 }
NVOS54Parameters is the parameter type for NV_ESC_RM_CONTROL.
+marshal
type NVOS55Parameters ¶
type NVOS55Parameters struct { HClient Handle `nvproxy:"NVOS55_PARAMETERS"` HParent Handle HObject Handle HClientSrc Handle HObjectSrc Handle Flags uint32 Status uint32 }
NVOS55Parameters is the parameter type for NV_ESC_RM_DUP_OBJECT.
+marshal
type NVOS56Parameters ¶
type NVOS56Parameters struct { HClient Handle `nvproxy:"NVOS56_PARAMETERS"` HDevice Handle HMemory Handle Pad0 [4]byte POldCPUAddress P64 PNewCPUAddress P64 Status uint32 Pad1 [4]byte }
NVOS56Parameters is the parameter type for NV_ESC_RM_UPDATE_DEVICE_MAPPING_INFO.
+marshal
type NVOS57Parameters ¶
type NVOS57Parameters struct { HClient Handle `nvproxy:"NVOS57_PARAMETERS"` HObject Handle Status uint32 }
NVOS57Parameters is the parameter type for NV_ESC_RM_SHARE.
+marshal
type NVOS64Parameters ¶
type NVOS64Parameters struct { HRoot Handle `nvproxy:"NVOS64_PARAMETERS"` HObjectParent Handle HObjectNew Handle HClass ClassID PAllocParms P64 PRightsRequested P64 ParamsSize uint32 Flags uint32 Status uint32 // contains filtered or unexported fields }
NVOS64Parameters is one possible parameter type for NV_ESC_RM_ALLOC.
+marshal +stateify savable
func (*NVOS64Parameters) FromOS64 ¶
func (n *NVOS64Parameters) FromOS64(other NVOS64Parameters)
FromOS64 implements RmAllocParamType.FromOS64.
func (*NVOS64Parameters) GetHClass ¶
func (n *NVOS64Parameters) GetHClass() ClassID
GetHClass implements RmAllocParamType.GetHClass.
func (*NVOS64Parameters) GetPAllocParms ¶
func (n *NVOS64Parameters) GetPAllocParms() P64
GetPAllocParms implements RmAllocParamType.GetPAllocParms.
func (*NVOS64Parameters) GetPRightsRequested ¶
func (n *NVOS64Parameters) GetPRightsRequested() P64
GetPRightsRequested implements RmAllocParamType.GetPRightsRequested.
func (*NVOS64Parameters) GetPointer ¶
func (n *NVOS64Parameters) GetPointer() uintptr
GetPointer implements RmAllocParamType.GetPointer.
func (*NVOS64Parameters) SetPAllocParms ¶
func (n *NVOS64Parameters) SetPAllocParms(p P64)
SetPAllocParms implements RmAllocParamType.SetPAllocParms.
func (*NVOS64Parameters) SetPRightsRequested ¶
func (n *NVOS64Parameters) SetPRightsRequested(p P64)
SetPRightsRequested implements RmAllocParamType.SetPRightsRequested.
func (*NVOS64Parameters) ToOS64 ¶
func (n *NVOS64Parameters) ToOS64() NVOS64Parameters
ToOS64 implements RmAllocParamType.ToOS64.
type NVXXXX_CTRL_XXX_INFO ¶
NVXXXX_CTRL_XXX_INFO is typedef-ed as the following in the driver: - NV2080_CTRL_GR_INFO - NV2080_CTRL_BIOS_INFO - NV0041_CTRL_SURFACE_INFO
+marshal slice:CtrlXxxInfoSlice
type NV_CHANNEL_ALLOC_PARAMS ¶
type NV_CHANNEL_ALLOC_PARAMS struct { HObjectError Handle `nvproxy:"same"` HObjectBuffer Handle GPFIFOOffset uint64 GPFIFOEntries uint32 Flags uint32 HVASpace Handle HUserdMemory [NV_MAX_SUBDEVICES]Handle UserdOffset [NV_MAX_SUBDEVICES]uint64 EngineType uint32 CID uint32 SubDeviceID uint32 HObjectECCError Handle InstanceMem NV_MEMORY_DESC_PARAMS UserdMem NV_MEMORY_DESC_PARAMS RamfcMem NV_MEMORY_DESC_PARAMS MthdbufMem NV_MEMORY_DESC_PARAMS HPhysChannelGroup Handle InternalFlags uint32 ErrorNotifierMem NV_MEMORY_DESC_PARAMS ECCErrorNotifierMem NV_MEMORY_DESC_PARAMS ProcessID uint32 SubProcessID uint32 EncryptIv [CC_CHAN_ALLOC_IV_SIZE_DWORD]uint32 DecryptIv [CC_CHAN_ALLOC_IV_SIZE_DWORD]uint32 HmacNonce [CC_CHAN_ALLOC_NONCE_SIZE_DWORD]uint32 }
NV_CHANNEL_ALLOC_PARAMS is the alloc params type for TURING_CHANNEL_GPFIFO_A and AMPERE_CHANNEL_GPFIFO_A, from src/common/sdk/nvidia/inc/alloc/alloc_channel.h.
+marshal
type NV_CHANNEL_GROUP_ALLOCATION_PARAMETERS ¶
type NV_CHANNEL_GROUP_ALLOCATION_PARAMETERS struct { HObjectError Handle `nvproxy:"same"` HObjectECCError Handle HVASpace Handle EngineType uint32 BIsCallingContextVgpuPlugin uint8 Pad0 [3]byte }
NV_CHANNEL_GROUP_ALLOCATION_PARAMETERS is the alloc params type for KEPLER_CHANNEL_GROUP_A, from src/common/sdk/nvidia/inc/nvos.h.
+marshal
type NV_CONFIDENTIAL_COMPUTE_ALLOC_PARAMS ¶
type NV_CONFIDENTIAL_COMPUTE_ALLOC_PARAMS struct {
Handle Handle `nvproxy:"same"`
}
NV_CONFIDENTIAL_COMPUTE_ALLOC_PARAMS is the alloc param type for NV_CONFIDENTIAL_COMPUTE, from src/common/sdk/nvidia/inc/class/clcb33.h.
+marshal
type NV_CTXSHARE_ALLOCATION_PARAMETERS ¶
type NV_CTXSHARE_ALLOCATION_PARAMETERS struct { HVASpace Handle `nvproxy:"same"` Flags uint32 SubctxID uint32 }
NV_CTXSHARE_ALLOCATION_PARAMETERS is the alloc params type for FERMI_CONTEXT_SHARE_A, from src/common/sdk/nvidia/inc/nvos.h.
+marshal
type NV_EXPORT_MEM_PACKET ¶
type NV_EXPORT_MEM_PACKET struct { UUID [NV_MEM_EXPORT_UUID_LEN]uint8 Opaque [16]uint8 }
NV_EXPORT_MEM_PACKET is from src/common/sdk/nvidia/inc/class/cl00e0.h
+marshal
type NV_GR_ALLOCATION_PARAMETERS ¶
type NV_GR_ALLOCATION_PARAMETERS struct { Version uint32 `nvproxy:"same"` Flags uint32 Size uint32 Caps uint32 }
NV_GR_ALLOCATION_PARAMETERS is the alloc param type for TURING_COMPUTE_A, AMPERE_COMPUTE_A, and ADA_COMPUTE_A, from src/common/sdk/nvidia/inc/nvos.h.
+marshal
type NV_HOPPER_USERMODE_A_PARAMS ¶
NV_HOPPER_USERMODE_A_PARAMS is the alloc param type for HOPPER_USERMODE_A, from src/common/sdk/nvidia/inc/nvos.h.
+marshal
type NV_MEMORY_ALLOCATION_PARAMS ¶
type NV_MEMORY_ALLOCATION_PARAMS struct { Owner uint32 `nvproxy:"same"` Type uint32 Flags uint32 Width uint32 Height uint32 Pitch int32 Attr uint32 Attr2 uint32 Format uint32 ComprCovg uint32 ZcullCovg uint32 RangeLo uint64 RangeHi uint64 Size uint64 Alignment uint64 Offset uint64 Limit uint64 Address P64 CtagOffset uint32 HVASpace Handle InternalFlags uint32 Tag uint32 // contains filtered or unexported fields }
NV_MEMORY_ALLOCATION_PARAMS is the alloc params type for various NV*_MEMORY* allocation classes, from src/common/sdk/nvidia/inc/nvos.h.
+marshal
type NV_MEMORY_ALLOCATION_PARAMS_V545 ¶
type NV_MEMORY_ALLOCATION_PARAMS_V545 struct { NV_MEMORY_ALLOCATION_PARAMS `nvproxy:"NV_MEMORY_ALLOCATION_PARAMS"` NumaNode int32 // contains filtered or unexported fields }
NV_MEMORY_ALLOCATION_PARAMS_V545 is the updated version of NV_MEMORY_ALLOCATION_PARAMS since 545.23.06.
+marshal
type NV_MEMORY_DESC_PARAMS ¶
type NV_MEMORY_DESC_PARAMS struct { Base uint64 `nvproxy:"same"` Size uint64 AddressSpace uint32 CacheAttrib uint32 }
NV_MEMORY_DESC_PARAMS is from src/common/sdk/nvidia/inc/alloc/alloc_channel.h.
+marshal
type NV_VASPACE_ALLOCATION_PARAMETERS ¶
type NV_VASPACE_ALLOCATION_PARAMETERS struct { Index uint32 `nvproxy:"same"` Flags uint32 VASize uint64 VAStartInternal uint64 VALimitInternal uint64 BigPageSize uint32 Pad0 [4]byte VABase uint64 }
NV_VASPACE_ALLOCATION_PARAMETERS is the alloc params type for FERMI_VASPACE_A, from src/common/sdk/nvidia/inc/nvos.h.
+marshal
type RMAPIVersion ¶
type RMAPIVersion struct { Cmd uint32 `nvproxy:"nv_ioctl_rm_api_version_t"` Reply uint32 VersionString [64]byte }
RMAPIVersion is the parameter type for NV_ESC_CHECK_VERSION_STR.
+marshal
type RS_ACCESS_MASK ¶
type RS_ACCESS_MASK struct {
Limbs [SDK_RS_ACCESS_MAX_LIMBS]uint32 // RsAccessLimb
}
RS_ACCESS_MASK is RS_ACCESS_MASK, from src/common/sdk/nvidia/inc/rs_access.h.
+marshal +stateify savable
type RS_SHARE_POLICY ¶
type RS_SHARE_POLICY struct { Target uint32 AccessMask RS_ACCESS_MASK Type uint16 Action uint8 Pad [1]byte }
RS_SHARE_POLICY is RS_SHARE_POLICY, from src/common/sdk/nvidia/inc/rs_access.h.
+marshal
type RmAllocParamType ¶
type RmAllocParamType interface { GetHClass() ClassID GetPAllocParms() P64 GetPRightsRequested() P64 SetPAllocParms(p P64) SetPRightsRequested(p P64) FromOS64(other NVOS64Parameters) ToOS64() NVOS64Parameters GetPointer() uintptr marshal.Marshallable }
RmAllocParamType should be implemented by all possible parameter types for NV_ESC_RM_ALLOC.
func GetRmAllocParamObj ¶
func GetRmAllocParamObj(isNVOS64 bool) RmAllocParamType
GetRmAllocParamObj returns the appropriate implementation of RmAllocParamType based on passed parameters.
type UVM_ALLOC_SEMAPHORE_POOL_PARAMS ¶
type UVM_ALLOC_SEMAPHORE_POOL_PARAMS struct { Base uint64 `nvproxy:"same"` Length uint64 PerGPUAttributes [UVM_MAX_GPUS]UvmGpuMappingAttributes GPUAttributesCount uint64 RMStatus uint32 Pad0 [4]byte }
+marshal
type UVM_ALLOC_SEMAPHORE_POOL_PARAMS_V550 ¶
type UVM_ALLOC_SEMAPHORE_POOL_PARAMS_V550 struct { Base uint64 `nvproxy:"UVM_ALLOC_SEMAPHORE_POOL_PARAMS"` Length uint64 PerGPUAttributes [UVM_MAX_GPUS_V2]UvmGpuMappingAttributes GPUAttributesCount uint64 RMStatus uint32 Pad0 [4]byte }
+marshal
type UVM_CREATE_EXTERNAL_RANGE_PARAMS ¶
type UVM_CREATE_EXTERNAL_RANGE_PARAMS struct { Base uint64 `nvproxy:"same"` Length uint64 RMStatus uint32 Pad0 [4]byte }
+marshal
type UVM_CREATE_RANGE_GROUP_PARAMS ¶
type UVM_CREATE_RANGE_GROUP_PARAMS struct { RangeGroupID uint64 `nvproxy:"same"` RMStatus uint32 Pad0 [4]byte }
+marshal
type UVM_DESTROY_RANGE_GROUP_PARAMS ¶
type UVM_DESTROY_RANGE_GROUP_PARAMS struct { RangeGroupID uint64 `nvproxy:"same"` RMStatus uint32 Pad0 [4]byte }
+marshal
type UVM_DISABLE_PEER_ACCESS_PARAMS ¶
type UVM_DISABLE_PEER_ACCESS_PARAMS struct { GPUUUIDA NvUUID `nvproxy:"same"` GPUUUIDB NvUUID RMStatus uint32 }
+marshal
type UVM_DISABLE_READ_DUPLICATION_PARAMS ¶
type UVM_DISABLE_READ_DUPLICATION_PARAMS struct { RequestedBase uint64 `nvproxy:"same"` Length uint64 RMStatus uint32 Pad0 [4]byte }
+marshal
type UVM_ENABLE_PEER_ACCESS_PARAMS ¶
type UVM_ENABLE_PEER_ACCESS_PARAMS struct { GPUUUIDA NvUUID `nvproxy:"same"` GPUUUIDB NvUUID RMStatus uint32 }
+marshal
type UVM_FREE_PARAMS ¶
type UVM_FREE_PARAMS struct { Base uint64 `nvproxy:"same"` Length uint64 RMStatus uint32 Pad0 [4]byte }
+marshal
type UVM_INITIALIZE_PARAMS ¶
+marshal
type UVM_MAP_DYNAMIC_PARALLELISM_REGION_PARAMS ¶
type UVM_MAP_DYNAMIC_PARALLELISM_REGION_PARAMS struct { Base uint64 `nvproxy:"same"` Length uint64 GPUUUID NvUUID RMStatus uint32 Pad0 [4]byte }
+marshal
type UVM_MAP_EXTERNAL_ALLOCATION_PARAMS ¶
type UVM_MAP_EXTERNAL_ALLOCATION_PARAMS struct { Base uint64 `nvproxy:"same"` Length uint64 Offset uint64 PerGPUAttributes [UVM_MAX_GPUS]UvmGpuMappingAttributes GPUAttributesCount uint64 RMCtrlFD int32 HClient uint32 // These are treated like NvHandle, but the driver uses NvU32. HMemory uint32 // These are treated like NvHandle, but the driver uses NvU32. RMStatus uint32 }
+marshal
func (*UVM_MAP_EXTERNAL_ALLOCATION_PARAMS) GetFrontendFD ¶
func (p *UVM_MAP_EXTERNAL_ALLOCATION_PARAMS) GetFrontendFD() int32
GetFrontendFD implements HasFrontendFD.GetFrontendFD.
func (*UVM_MAP_EXTERNAL_ALLOCATION_PARAMS) SetFrontendFD ¶
func (p *UVM_MAP_EXTERNAL_ALLOCATION_PARAMS) SetFrontendFD(fd int32)
SetFrontendFD implements HasFrontendFD.SetFrontendFD.
type UVM_MAP_EXTERNAL_ALLOCATION_PARAMS_V550 ¶
type UVM_MAP_EXTERNAL_ALLOCATION_PARAMS_V550 struct { Base uint64 `nvproxy:"UVM_MAP_EXTERNAL_ALLOCATION_PARAMS"` Length uint64 Offset uint64 PerGPUAttributes [UVM_MAX_GPUS_V2]UvmGpuMappingAttributes GPUAttributesCount uint64 RMCtrlFD int32 HClient uint32 // These are treated like NvHandle, but the driver uses NvU32. HMemory uint32 // These are treated like NvHandle, but the driver uses NvU32. RMStatus uint32 }
+marshal
func (*UVM_MAP_EXTERNAL_ALLOCATION_PARAMS_V550) GetFrontendFD ¶
func (p *UVM_MAP_EXTERNAL_ALLOCATION_PARAMS_V550) GetFrontendFD() int32
GetFrontendFD implements HasFrontendFD.GetFrontendFD.
func (*UVM_MAP_EXTERNAL_ALLOCATION_PARAMS_V550) SetFrontendFD ¶
func (p *UVM_MAP_EXTERNAL_ALLOCATION_PARAMS_V550) SetFrontendFD(fd int32)
SetFrontendFD implements HasFrontendFD.SetFrontendFD.
type UVM_MIGRATE_PARAMS ¶
type UVM_MIGRATE_PARAMS struct { Base uint64 `nvproxy:"same"` Length uint64 DestinationUUID NvUUID Flags uint32 SemaphoreAddress uint64 SemaphorePayload uint32 CPUNumaNode uint32 UserSpaceStart uint64 UserSpaceLength uint64 RMStatus uint32 // contains filtered or unexported fields }
+marshal
type UVM_MIGRATE_PARAMS_V550 ¶
type UVM_MIGRATE_PARAMS_V550 struct { Base uint64 `nvproxy:"UVM_MIGRATE_PARAMS"` Length uint64 DestinationUUID NvUUID Flags uint32 SemaphoreAddress uint64 SemaphorePayload uint32 CPUNumaNode int32 UserSpaceStart uint64 UserSpaceLength uint64 RMStatus uint32 // contains filtered or unexported fields }
UVM_MIGRATE_PARAMS_V550 is the updated version of UVM_MIGRATE_PARAMS since 550.40.07.
+marshal
type UVM_MIGRATE_RANGE_GROUP_PARAMS ¶
type UVM_MIGRATE_RANGE_GROUP_PARAMS struct { RangeGroupID uint64 `nvproxy:"same"` DestinationUUID NvUUID RMStatus uint32 Pad0 [4]byte }
+marshal
type UVM_MM_INITIALIZE_PARAMS ¶
+marshal
type UVM_PAGEABLE_MEM_ACCESS_PARAMS ¶
type UVM_PAGEABLE_MEM_ACCESS_PARAMS struct { PageableMemAccess uint8 `nvproxy:"same"` Pad [3]byte RMStatus uint32 }
+marshal
type UVM_REGISTER_CHANNEL_PARAMS ¶
type UVM_REGISTER_CHANNEL_PARAMS struct { GPUUUID NvUUID `nvproxy:"same"` RMCtrlFD int32 HClient Handle HChannel Handle Pad [4]byte Base uint64 Length uint64 RMStatus uint32 Pad0 [4]byte }
+marshal
func (*UVM_REGISTER_CHANNEL_PARAMS) GetFrontendFD ¶
func (p *UVM_REGISTER_CHANNEL_PARAMS) GetFrontendFD() int32
GetFrontendFD implements HasFrontendFD.GetFrontendFD.
func (*UVM_REGISTER_CHANNEL_PARAMS) SetFrontendFD ¶
func (p *UVM_REGISTER_CHANNEL_PARAMS) SetFrontendFD(fd int32)
SetFrontendFD implements HasFrontendFD.SetFrontendFD.
type UVM_REGISTER_GPU_PARAMS ¶
type UVM_REGISTER_GPU_PARAMS struct { GPUUUID NvUUID `nvproxy:"same"` NumaEnabled uint8 Pad [3]byte NumaNodeID int32 RMCtrlFD int32 HClient Handle HSMCPartRef Handle RMStatus uint32 }
+marshal
func (*UVM_REGISTER_GPU_PARAMS) GetFrontendFD ¶
func (p *UVM_REGISTER_GPU_PARAMS) GetFrontendFD() int32
GetFrontendFD implements HasFrontendFD.GetFrontendFD.
func (*UVM_REGISTER_GPU_PARAMS) SetFrontendFD ¶
func (p *UVM_REGISTER_GPU_PARAMS) SetFrontendFD(fd int32)
SetFrontendFD implements HasFrontendFD.SetFrontendFD.
type UVM_REGISTER_GPU_VASPACE_PARAMS ¶
type UVM_REGISTER_GPU_VASPACE_PARAMS struct { GPUUUID NvUUID `nvproxy:"same"` RMCtrlFD int32 HClient Handle HVASpace Handle RMStatus uint32 }
+marshal
func (*UVM_REGISTER_GPU_VASPACE_PARAMS) GetFrontendFD ¶
func (p *UVM_REGISTER_GPU_VASPACE_PARAMS) GetFrontendFD() int32
GetFrontendFD implements HasFrontendFD.GetFrontendFD.
func (*UVM_REGISTER_GPU_VASPACE_PARAMS) SetFrontendFD ¶
func (p *UVM_REGISTER_GPU_VASPACE_PARAMS) SetFrontendFD(fd int32)
SetFrontendFD implements HasFrontendFD.SetFrontendFD.
type UVM_SET_PREFERRED_LOCATION_PARAMS ¶
type UVM_SET_PREFERRED_LOCATION_PARAMS struct { RequestedBase uint64 `nvproxy:"same"` Length uint64 PreferredLocation NvUUID RMStatus uint32 Pad0 [4]byte }
+marshal
type UVM_SET_PREFERRED_LOCATION_PARAMS_V550 ¶
type UVM_SET_PREFERRED_LOCATION_PARAMS_V550 struct { RequestedBase uint64 `nvproxy:"UVM_SET_PREFERRED_LOCATION_PARAMS"` Length uint64 PreferredLocation NvUUID PreferredCPUNumaNode int32 RMStatus uint32 }
+marshal
type UVM_SET_RANGE_GROUP_PARAMS ¶
type UVM_SET_RANGE_GROUP_PARAMS struct { RangeGroupID uint64 `nvproxy:"same"` RequestedBase uint64 Length uint64 RMStatus uint32 Pad0 [4]byte }
+marshal
type UVM_TOOLS_READ_PROCESS_MEMORY_PARAMS ¶
type UVM_TOOLS_READ_PROCESS_MEMORY_PARAMS struct { Buffer uint64 `nvproxy:"same"` Size uint64 TargetVA uint64 BytesRead uint64 RMStatus uint32 Pad0 [4]byte }
+marshal
type UVM_TOOLS_WRITE_PROCESS_MEMORY_PARAMS ¶
type UVM_TOOLS_WRITE_PROCESS_MEMORY_PARAMS struct { Buffer uint64 `nvproxy:"same"` Size uint64 TargetVA uint64 BytesWritten uint64 RMStatus uint32 Pad0 [4]byte }
+marshal
type UVM_UNMAP_EXTERNAL_PARAMS ¶
type UVM_UNMAP_EXTERNAL_PARAMS struct { Base uint64 `nvproxy:"same"` Length uint64 GPUUUID NvUUID RMStatus uint32 Pad0 [4]byte }
+marshal
type UVM_UNREGISTER_CHANNEL_PARAMS ¶
type UVM_UNREGISTER_CHANNEL_PARAMS struct { GPUUUID NvUUID `nvproxy:"same"` HClient Handle HChannel Handle RMStatus uint32 }
+marshal
type UVM_UNREGISTER_GPU_PARAMS ¶
+marshal
type UVM_UNREGISTER_GPU_VASPACE_PARAMS ¶
+marshal
type UVM_UNSET_ACCESSED_BY_PARAMS ¶
type UVM_UNSET_ACCESSED_BY_PARAMS struct { RequestedBase uint64 `nvproxy:"same"` Length uint64 AccessedByUUID NvUUID RMStatus uint32 Pad0 [4]byte }
+marshal
type UVM_UNSET_PREFERRED_LOCATION_PARAMS ¶
type UVM_UNSET_PREFERRED_LOCATION_PARAMS struct { RequestedBase uint64 `nvproxy:"same"` Length uint64 RMStatus uint32 Pad0 [4]byte }
+marshal