NVIDIA DRIVE OS Linux SDK API Reference

5.1.12.0 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
NvSciBuf Initialization APIs

Detailed Description

List of APIs to initialize/de-initialize NvSciBuf module.

Functions

NvSciError NvSciBufModuleOpen (NvSciBufModule *newModule)
 Initializes an instance of the NvSciBuf module within the calling process and provides an NvSciBufModule representing the instance. More...
 
void NvSciBufModuleClose (NvSciBufModule module)
 Releases an instance of the NvSciBuf module obtained through an earlier call to NvSciBufModuleOpen(). More...
 
NvSciError NvSciBufCheckVersionCompatibility (uint32_t majorVer, uint32_t minorVer, bool *isCompatible)
 API to check if loaded library version is compatible with passed library build version. More...
 

Function Documentation

NvSciError NvSciBufCheckVersionCompatibility ( uint32_t  majorVer,
uint32_t  minorVer,
bool *  isCompatible 
)

API to check if loaded library version is compatible with passed library build version.

This function checks the version of all dependent libraries and sets the output variable to true if all libraries are compatible, else sets output to false.

Parameters
[in]majorVerbuild major version.
[in]minorVerbuild minor version.
[out]isCompatiblepointer to the bool holding the result.
Returns
NvSciError, the completion code of the operation:
void NvSciBufModuleClose ( NvSciBufModule  module)

Releases an instance of the NvSciBuf module obtained through an earlier call to NvSciBufModuleOpen().

Once an NvSciBufModule is closed and all NvSciBufAttrLists and NvSciBufObjs bound to that module instance are freed, the NvSciBuf module instance will be de-initialized in the calling process.

Parameters
[in]moduleThe NvSciBufModule instance to close. The calling process must not pass this module to another NvSciBuf API call.
Returns
void
NvSciError NvSciBufModuleOpen ( NvSciBufModule newModule)

Initializes an instance of the NvSciBuf module within the calling process and provides an NvSciBufModule representing the instance.

Note
A process may call this function multiple times. Each successful invocation will yield a new NvSciBuf module instance.
Parameters
[in]newModuleThe new NvSciBuf module instance.
Returns
NvSciError, the completion code of this operation: