|
|
NVIDIA DriveOS Linux SDK API Reference
|
7.2.5.0 Early Access Release
|
Go to the documentation of this file.
12 #ifndef INCLUDED_NVOS_S1_TEGRA_H
13 #define INCLUDED_NVOS_S1_TEGRA_H
23 #if defined(__cplusplus)
141 NvS32
NvOsVsnprintf(
char *str,
size_t size,
const char *format, va_list ap);
163 NvS32
NvOsSnprintf(
char *str,
size_t size,
const char *format, ...);
516 void NvOsLogPrintf(
int prio,
const char *tag,
const char *format, ...);
657 #if defined(__linux__)
741 NvOsMemcmp(
const void *s1,
const void *s2,
size_t size);
839 const NvU32 *pIrqList,
843 NvBool InterruptEnable);
934 void NvOsSetResourceAllocFileLine(
void* userptr,
const char* file,
int line);
939 #if defined(__cplusplus)
943 #endif // INCLUDED_NVOS_S1_TEGRA_H
NvError NvOsMkdir(char *dirname)
This function creates a directory.
int NvOsSetVerboseLevel(NvS32 VerbLevel)
This function set the verbose log level.
void NvOsLogPrintf(int prio, const char *tag, const char *format,...)
This function prints a log message according to the prio parameter.
void NvOsWaitUS(NvU32 usec)
This function busy-wait without blocking for a period of time. This function is designed for use that...
void NvOsDataCacheWritebackInvalidateRange(void *start, NvU32 length)
Writes back and invlidates a range of the data cache.
NvS32 NvOsDebugNprintf(const char *format,...)
Same as NvOsDebugPrintf, except returns the number of chars written.
void NvOsMutexUnlock(NvOsMutexHandle mutex)
This function unlocks a mutex.
@ NVOS_VERB_LVL_4
NvOS log verbosity level 4 (highest)
NvError
The NvError enumeration contains ALL return / error codes.
NvCallstack * NvOsCallstackCreate(NvOsCallstackType stackType)
void NvOsMutexLock(NvOsMutexHandle mutex)
This function locks a mutex.
@ NvOsCallstackType_Force32
int NvOsGetVerboseLevel(NvS32 *VerbLevel)
This function gets the verbose log level.
NvError NvOsFprintf(NvOsFileHandle hFile, const char *format,...)
This function print string into a file stream as format and per format parameter and variable-argumen...
void NvOsDumpToDebugPrintf(void *context, const char *line)
void NvOsMutexDestroy(NvOsMutexHandle mutex)
This function destroys a mutex.
void NvOsCancelFpsTarget(int fd)
To be deprecated.
void NvOsIntrMutexUnlock(NvOsIntrMutexHandle mutex)
Releases an ISR-safe mutex.
struct NvOsMutexRec * NvOsMutexHandle
void NvOsIntrMutexLock(NvOsIntrMutexHandle mutex)
Aquire an ISR-safe mutex.
struct NvOsInterruptRec * NvOsInterruptHandle
NvError NvOsInterruptEnable(NvOsInterruptHandle handle)
Enables the interrupt handler with the IRQ number.
void NvOsLibraryUnload(NvOsLibraryHandle library)
This function unloads the loaded dynamic lib.
@ NVOS_VERB_LVL_1
NvOS log verbosity level 1.
struct NvOsSemaphoreRec * NvOsSemaphoreHandle
NvBool NvOsCallstackContainsPid(NvCallstack *stack, NvU32 pid)
void NvOsVerbosePrintf(NvS32 VerbLevel, const char *Fmt,...)
This function print log, if current verbose log level is not smaller than log's verbose level....
struct NvOsIntrMutexRec * NvOsIntrMutexHandle
void NvOsThreadJoin(NvOsThreadHandle t)
This function blocks until while the thread is running, after the thread is terminated,...
void NvOsSemaphoreDestroy(NvOsSemaphoreHandle semaphore)
This function destroys a semaphore.
void NvOsInterruptUnregister(NvOsInterruptHandle handle)
Unregisters the interrupt handler from the associated IRQ number.
void NvOsSemaphoreWait(NvOsSemaphoreHandle semaphore)
This function waits a semaphore, and decrease the number of wait operations. Thread is blocked infini...
void NvOsInterruptDone(NvOsInterruptHandle handle)
Called when the ISR/IST is done handling the interrupt.
NvError NvOsVfprintf(NvOsFileHandle stream, const char *format, va_list ap)
Prints a string to a file stream using a va_list.
NvError NvOsFremove(const char *filename)
This function removes a file.
void(* NvOsDumpCallback)(void *context, const char *line)
void NvOsSemaphoreSignal(NvOsSemaphoreHandle semaphore)
This function increases the number of wait operation, to given semaphore.
void NvOsStrcpy(char *dest, const char *src)
Copies a string.
void NvOsIntrMutexDestroy(NvOsIntrMutexHandle mutex)
Destroys an ISR-safe mutex.
void NvOsFlushWriteCombineBuffer(void)
Flushes the CPU's write combine buffer.
void(* NvOsThreadFunction)(void *args)
@ NvOsCallstackType_HexStack
@ NvOsCallstackType_NoStack
NvS32 NvOsSnprintf(char *str, size_t size, const char *format,...)
This function produces a string according format parameter, variable-argument list and size parameter...
@ NVOS_VERB_LVL_0
NvOS log verbosity level 0 (lowest)
void NvOsCallstackDump(NvCallstack *stack, NvU32 skip, NvOsDumpCallback callBack, void *context)
NvError NvOsFtruncate(NvOsFileHandle stream, NvU64 length)
@ NVOS_VERB_LVL_3
NvOS log verbosity level 3.
NvError NvOsInterruptPriorityThreadCreate(NvOsThreadFunction function, void *args, NvOsThreadHandle *thread)
Creates a near interrupt priority thread.
typedef void(WFD_APIENTRY PFNWFDBINDSOURCETOPIPELINEWITHTIMESTAMPNV)(const WFDDevice device
NvU32 NvOsCallstackGetHeight(NvCallstack *stack)
void NvOsDataCacheWritebackRange(void *start, NvU32 length)
Writes back a range of the data cache.
struct NvCallstackRec NvCallstack
struct NvOsThreadRec * NvOsThreadHandle
NvError NvOsInterruptRegister(NvU32 IrqListSize, const NvU32 *pIrqList, const NvOsInterruptHandler *pIrqHandlerList, void *context, NvOsInterruptHandle *handle, NvBool InterruptEnable)
Registers the interrupt handler with the IRQ number.
void NvOsCallstackDestroy(NvCallstack *callstack)
NvOsMemAttribute
Defines memory attributes.
static NV_INLINE void NvOsDebugCallstack(NvU32 skip)
@ NvOsCallstackType_SymbolStack
NvError NvOsFsync(NvOsFileHandle stream)
NvError NvOsReaddir(NvOsDirHandle dir, char *name, size_t size)
This function gets an entry name in directory.
const WFDCommitType const WFDHandle handle
NvError NvOsPhysicalMemMap(NvOsPhysAddr phys, size_t size, NvOsMemAttribute attrib, NvU32 flags, void **ptr)
Maps computer resources into user space.
int NvOsModifyFpsTarget(int fd, int target)
To be deprecated.
void NvOsFclose(NvOsFileHandle hFile)
This function closes a file stream.
void NvOsPhysicalMemUnmap(void *ptr, size_t size)
Releases resources previously allocated by NvOsPhysicalMemMap().
void NvOsDebugPrintf(const char *format,...)
This function print log.
void NvOsCallstackGetFrame(char *buf, NvU32 len, NvCallstack *stack, NvU32 level)
size_t NvOsStrlen(const char *s)
This function counts string length.
void NvOsDebugVprintf(const char *format, va_list ap)
This function print log as per format parameter and variable-argument list.
NvS32 NvOsVsnprintf(char *str, size_t size, const char *format, va_list ap)
This function produces a string according format parameter and ap parameter. And the maximum length o...
NvU32 NvOsCallstackHash(NvCallstack *stack)
void NvOsDebugString(const char *str)
This function prints debug logs via the system log facility.
int NvOsSetFpsTarget(int target)
To be deprecated.
@ NVOS_VERB_LVL_2
NvOS log verbosity level 2.
NvError NvOsIntrMutexCreate(NvOsIntrMutexHandle *mutex)
Creates a mutex that is safe to aquire in an ISR.
void(* NvOsInterruptHandler)(void *args)
Interrupt handler function.
int NvOsMemcmp(const void *s1, const void *s2, size_t size)
Compares two memory regions.