List of APIs to initialize/de-initialize NvSciBuf module.
◆ 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] | majorVer | build major version. |
[in] | minorVer | build minor version. |
[out] | isCompatible | boolean value stating if loaded NvSciBuf library is compatible or not. |
- Returns
- NvSciError, the completion code of the operation:
◆ NvSciBufModuleClose()
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] | module | The NvSciBufModule to close. |
- Returns
- void
- Panic if module is invalid
◆ NvSciBufModuleOpen()
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] | newModule | The new NvSciBufModule. |
- Returns
- NvSciError, the completion code of this operation: