NVIDIA DRIVE OS Linux SDK API Reference

5.1.15.0 Release
For Test and Development only

Detailed Description

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

Functions

NvSciError NvSciBufModuleOpen (NvSciBufModule *newModule)
 Initializes and returns a new NvSciBufModule with no NvSciBufAttrLists, buffers, or NvSciBufObjs bound to it. More...
 
void NvSciBufModuleClose (NvSciBufModule module)
 Releases the NvSciBufModule obtained through an earlier call to NvSciBufModuleOpen(). More...
 
NvSciError NvSciBufCheckVersionCompatibility (uint32_t majorVer, uint32_t minorVer, bool *isCompatible)
 Checks if loaded NvSciBuf library version is compatible with NvSciBuf library version with which elements dependent on NvSciBuf were built. More...
 

Function Documentation

◆ NvSciBufCheckVersionCompatibility()

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

Checks if loaded NvSciBuf library version is compatible with NvSciBuf library version with which elements dependent on NvSciBuf were built.

This function checks loaded NvSciBuf library version with input NvSciBuf library version as well as versions of libraries that NvSciBuf depends on 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]isCompatibleboolean value stating if loaded NvSciBuf library is compatible or not.
Returns
NvSciError, the completion code of the operation:

◆ NvSciBufModuleClose()

void NvSciBufModuleClose ( NvSciBufModule  module)

Releases the NvSciBufModule obtained through an earlier call to NvSciBufModuleOpen().

Once the NvSciBufModule is closed and all NvSciBufAttrLists and NvSciBufObjs bound to it are freed, the NvSciBufModule will be de-initialized in the calling process.

Parameters
[in]moduleThe NvSciBufModule to close.
Returns
void
  • Panic if module is invalid

◆ NvSciBufModuleOpen()

NvSciError NvSciBufModuleOpen ( NvSciBufModule newModule)

Initializes and returns a new NvSciBufModule with no NvSciBufAttrLists, buffers, or NvSciBufObjs bound to it.

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