NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release

Detailed Description

Typedefs

typedef void * NvOsLibraryHandle
 

Functions

void * NvOsLibraryGetSymbol (NvOsLibraryHandle library, const char *symbol)
 This function get symbol from the loaded dynamic library. More...
 
NvError NvOsLibraryLoad (const char *name, NvOsLibraryHandle *library)
 This function loads the dynamic library. More...
 
NvError NvOsLibraryUnloadEx (NvOsLibraryHandle library)
 This function unloads the loaded dynamic lib. More...
 

Typedef Documentation

◆ NvOsLibraryHandle

Handle for NvOS library type. This is an opaque pointer and should not be dereferenced.

Definition at line 436 of file nvos_s3_tegra_safety.h.

Function Documentation

◆ NvOsLibraryGetSymbol()

void* NvOsLibraryGetSymbol ( NvOsLibraryHandle  library,
const char *  symbol 
)

This function get symbol from the loaded dynamic library.

Parameters
[in]libraryNvOS library handle
[in]symbolthe symbol name which we want to search
Returns
Not Null void pointer Success
Null Error if either library or symbol is NULL
Null Error if dlsym() in QNX libc return Null
Precondition
NvOsLibraryLoad() must be called to load the dynamic library before calling this function.


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Re-entrant: No
    • Thread-safe: Yes
    • Async/Sync: Sync
  • Required privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: Yes
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA

◆ NvOsLibraryLoad()

NvError NvOsLibraryLoad ( const char *  name,
NvOsLibraryHandle *  library 
)

This function loads the dynamic library.

Parameters
[in]namethe lib name
[out]libraryNvOS library handle
Returns
NvSuccess Success
NvError_LibraryNotFound Error if dlopen() in QNX libc, return NULL
NvError_BadParameter Error if either library or symbol is NULL
NvError_BadParameter Error if the length of name is greater than 251
Precondition
None
Note
This function does not include a check for API mode as a simple wrapper of the underlying QNX_System libc_api. It is the responsibility of the caller to ensure that this API is invoked in the appropriate VM state, as described in the "API group" section below.


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Re-entrant: No
    • Thread-safe: Yes
    • Async/Sync: Sync
  • Required privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: No
    • Reinit/Deinit Preparation: No
  • Maturity: GA

◆ NvOsLibraryUnloadEx()

NvError NvOsLibraryUnloadEx ( NvOsLibraryHandle  library)

This function unloads the loaded dynamic lib.

Parameters
[in]libraryNvOS library handle
Returns
NvSuccess : Success
NvError_BadParameter : Error when library is NULL
NvError_LibraryNotFound : Error when dlclose() is failed
Precondition
NvOsLibraryLoad() must be called to load the dynamic library before calling this function.
Note
This function does not include a check for API mode as a simple wrapper of the underlying QNX_System libc_api. It is the responsibility of the caller to ensure that this API is invoked in the appropriate VM state, as described in the "API group" section below.


Usage considerations

  • Allowed context for the API call
    • Interrupt handler: No
    • Signal handler: No
    • Re-entrant: No
    • Thread-safe: Yes
    • Async/Sync: Sync
  • Required privileges: None
  • Allowed execution state
    • Initialization: Yes
    • Operational: No
    • Reinit/Deinit Preparation: Yes
  • Maturity: GA