NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
nvtegrahv.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016-2026, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA CORPORATION and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA CORPORATION is strictly prohibited.
9  */
10 
16 #ifndef INCLUDED_NV_TEGRA_HV_H
17 #define INCLUDED_NV_TEGRA_HV_H
18 
19 #if defined(__cplusplus)
20 extern "C"
21 {
22 #endif
23 
24 #include <stdint.h>
25 
32 #if (NV_IS_SAFETY == 0)
33 /* environ var that stores display vmid */
34 #define DISPLAY_VM "DISPLAY_VM"
35 #endif
36 
41 typedef int32_t (*PfnNvHvGetOsVmId)(uint32_t *vmid);
45 typedef int32_t (*PfnNvHvCheckOsNative)(void);
46 #if (NV_IS_SAFETY == 0)
47 
50 typedef int32_t (*PfnNvHvGetDisplayVmId)(uint32_t *dpvmid);
51 int32_t NvHvGetDisplayVmId(uint32_t *dpvmid);
52 #endif
53 
115 int32_t NvHvCheckOsNative(void);
116 
161 int32_t NvHvGetOsVmId(uint32_t *vmid);
162 
166 typedef enum
167 {
174 } NvOsType;
175  /* nvhv_user_api_group */
177 
178 #if defined(__cplusplus)
179 }
180 #endif /* __cplusplus */
181 
182 #endif
Os_Non_Native
@ Os_Non_Native
OS is running as non native.
Definition: nvtegrahv.h:169
NvHvGetOsVmId
int32_t NvHvGetOsVmId(uint32_t *vmid)
API to get Vitual Machine ID.
Os_Native
@ Os_Native
OS is running as Native.
Definition: nvtegrahv.h:171
NvHvCheckOsNative
int32_t NvHvCheckOsNative(void)
Userspace API to check whether running on Virtualized System or Native.
void
typedef void(WFD_APIENTRY PFNWFDBINDSOURCETOPIPELINEWITHTIMESTAMPNV)(const WFDDevice device
Os_Detection_Failed
@ Os_Detection_Failed
OS detection failed.
Definition: nvtegrahv.h:173
NvOsType
NvOsType
enum for OS type
Definition: nvtegrahv.h:166