NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
nvrm_init.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2007-2021 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 
11 #ifndef INCLUDED_nvrm_init_H
12 #define INCLUDED_nvrm_init_H
13 
14 
15 #if defined(__cplusplus)
16 extern "C"
17 {
18 #endif
19 
26 #include "nvcommon.h"
27 #include "nverror.h"
28 
34 #include "nvrm_defs.h"
35 
39 #define NVRM_OPEN_CLOSE_DEFINED
40 
44 static NvError NV_UNUSED NvRmOpenNew(NvRmDeviceHandle *pHandle) {
45  *pHandle = (NvRmDeviceHandle)1;
46  return NvSuccess;
47 }
48 
52 static void NV_UNUSED NvRmClose(NvRmDeviceHandle NV_UNUSED hDevice) { }
53 
56 #if defined(__cplusplus)
57 }
58 #endif
59 
60 #endif
NvError
NvError
The NvError enumeration contains ALL return / error codes.
Definition: nverror.h:43
nverror.h
nvrm_defs.h
nvcommon.h
NvRmOpenNew
static NvError NV_UNUSED NvRmOpenNew(NvRmDeviceHandle *pHandle)
Deprecated API.
Definition: nvrm_init.h:44
NvSuccess
@ NvSuccess
An alias for success.
Definition: nverror.h:49
NvRmClose
static void NV_UNUSED NvRmClose(NvRmDeviceHandle NV_UNUSED hDevice)
Deprecated API.
Definition: nvrm_init.h:52
NvRmDeviceHandle
struct NvRmDeviceRec * NvRmDeviceHandle
Definition: nvrm_defs.h:19