NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release

Detailed Description

Functions

void NvOsDebugPrintf (const char *format,...)
 This function print log. More...
 
void NvOsLogPrintf (int prio, const char *tag, const char *format,...)
 This function prints a log message according to the prio parameter. More...
 
void NvOsVerbosePrintf (NvS32 VerbLevel, const char *Fmt,...)
 This function print log, if current verbose log level is not smaller than log's verbose level. Log's verbose level is given as VerbLevel parameter, and log is printed actually by slogf() in QNX libc. More...
 
void NvOsDebugVprintf (const char *format, va_list ap)
 This function print log as per format parameter and variable-argument list. More...
 
int NvOsGetVerboseLevel (NvS32 *VerbLevel)
 This function gets the verbose log level. More...
 
int NvOsSetVerboseLevel (NvS32 VerbLevel)
 This function set the verbose log level. More...
 

Function Documentation

◆ NvOsDebugPrintf()

void NvOsDebugPrintf ( const char *  format,
  ... 
)

This function print log.

Parameters
[in]formatFollowed a standard of format parameter of printf() in QNX libc
Returns
N/A
Note
  • Allowed context for the API call
    • This function's safety follow vslogf() in QNX libc.
  • Is thread safe: Yes
  • Required Privileges: N/A
  • API Group
    • Initialization: Yes
    • Run time: Yes
    • De-initialization: Yes

◆ NvOsDebugVprintf()

void NvOsDebugVprintf ( const char *  format,
va_list  ap 
)

This function print log as per format parameter and variable-argument list.

Parameters
[in]formatFollowed a standard of format parameter of printf() in QNX libc
[in]apvariable-argument list
Returns
N/A
Note
  • Allowed context for the API call
    • This function's safety follow vslogf() in QNX libc.
  • Is thread safe: Yes
  • Required Privileges: N/A
  • API Group
    • Initialization: Yes
    • Run time: Yes
    • De-initialization: Yes

◆ NvOsGetVerboseLevel()

int NvOsGetVerboseLevel ( NvS32 *  VerbLevel)

This function gets the verbose log level.

Parameters
[out]VerbLevelNVOS_VERB_LVL_0, NVOS_VERB_LVL_1, NVOS_VERB_LVL_2, NVOS_VERB_LVL_3, or NVOS_VERB_LVL_4
Returns
0, Success
-1, Error if current verbose level is invalid
Note
  • Allowed context for the API call
  • Is thread safe: Yes
  • Required Privileges: N/A
  • API Group
    • Initialization: Yes
    • Run time: Yes
    • De-initialization: Yes

◆ NvOsLogPrintf()

void NvOsLogPrintf ( int  prio,
const char *  tag,
const char *  format,
  ... 
)

This function prints a log message according to the prio parameter.

Parameters
[in]prioLog priority level
[in]tagNot used
[in]formatFormat string following the standard of the format parameter of printf()
Returns
N/A
Precondition
None


Usage considerations

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

◆ NvOsSetVerboseLevel()

int NvOsSetVerboseLevel ( NvS32  VerbLevel)

This function set the verbose log level.

Parameters
[in]VerbLevelNVOS_VERB_LVL_0, NVOS_VERB_LVL_1, NVOS_VERB_LVL_2, NVOS_VERB_LVL_3, or NVOS_VERB_LVL_4 is supported
Returns
0, Success
-1, Error if invalid value of SocId parameter
Note
  • Allowed context for the API call
    • Interrupt: Yes
    • Signal handler: Yes
    • Thread: Yes
  • Is thread safe: No - Require user to take lock for serialization of calls
  • Required Privileges: N/A
  • API Group
    • Initialization: Yes
    • Run time: Yes
    • De-initialization: Yes

◆ NvOsVerbosePrintf()

void NvOsVerbosePrintf ( NvS32  VerbLevel,
const char *  Fmt,
  ... 
)

This function print log, if current verbose log level is not smaller than log's verbose level. Log's verbose level is given as VerbLevel parameter, and log is printed actually by slogf() in QNX libc.

Parameters
[in]VerbLevellog's verbose level, and it should be one of below. NVOS_VERB_LVL_0, NVOS_VERB_LVL_1, NVOS_VERB_LVL_2, NVOS_VERB_LVL_3, or NVOS_VERB_LVL_4
[in]FmtA standard printf() string followed by printf() arguments in QNX libc
Returns
0, Success
-1, Error if invalid value of SocId parameter
Note
  • Allowed context for the API call
    • This function's safety follow slogf(), vsnprintf() in QNX libc.
  • Is thread safe: Yes
  • Required Privileges: N/A
  • API Group
    • Initialization: Yes
    • Run time: Yes
    • De-initialization: Yes