NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
nvtegrahv.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016-2025, 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 
18 #ifndef INCLUDED_NV_TEGRA_HV_H
19 #define INCLUDED_NV_TEGRA_HV_H
20 
21 #if defined(__cplusplus)
22 extern "C"
23 {
24 #endif
25 
26 #include <stdint.h>
27 
33 #if (NV_IS_SAFETY == 0)
34 /* environ var that stores display vmid */
35 #define DISPLAY_VM "DISPLAY_VM"
36 #endif
37 
42 typedef int32_t (*PfnNvHvGetOsVmId)(uint32_t *vmid);
46 typedef int32_t (*PfnNvHvCheckOsNative)(void);
47 #if (NV_IS_SAFETY == 0)
48 
51 typedef int32_t (*PfnNvHvGetDisplayVmId)(uint32_t *dpvmid);
52 int32_t NvHvGetDisplayVmId(uint32_t *dpvmid);
53 #endif
54 
95 int32_t NvHvCheckOsNative(void);
96 
122 int32_t NvHvGetOsVmId(uint32_t *vmid);
123 
127 typedef enum
128 {
135 } NvOsType;
136  /* nvhv_user_api_group */
138 
139 #if defined(__cplusplus)
140 }
141 #endif /* __cplusplus */
142 
143 #endif
Os_Non_Native
@ Os_Non_Native
OS is running as non native.
Definition: nvtegrahv.h:130
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:132
NvHvCheckOsNative
int32_t NvHvCheckOsNative(void)
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:134
NvOsType
NvOsType
enum for OS type
Definition: nvtegrahv.h:127