NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release

Detailed Description

Functions

NvError NvOsFremove (const char *filename)
 This function removes a file. More...
 
NvError NvOsMkdir (char *dirname)
 This function creates a directory. More...
 
NvError NvOsReaddir (NvOsDirHandle dir, char *name, size_t size)
 This function gets an entry name in directory. More...
 
void NvOsFclose (NvOsFileHandle hFile)
 This function closes a file stream. More...
 
NvError NvOsFprintf (NvOsFileHandle hFile, const char *format,...)
 This function print string into a file stream as format and per format parameter and variable-argument list. More...
 

Function Documentation

◆ NvOsFclose()

void NvOsFclose ( NvOsFileHandle  hFile)

This function closes a file stream.

Parameters
[in]hFileFile stream to be closed
Returns
N/A
Note
  • Allowed context for the API call
    • This function's safety follow fclose() in QNX libc.
  • Is thread safe: Yes
  • Required Privileges: N/A
  • API Group
    • Initialization: Yes
    • Run time: No
    • De-initialization: Yes

◆ NvOsFprintf()

NvError NvOsFprintf ( NvOsFileHandle  hFile,
const char *  format,
  ... 
)

This function print string into a file stream as format and per format parameter and variable-argument list.

Parameters
[in]hFileFile stream to be printed
[in]formatFollowed a standard of printf() in QNX libc, passed to format parameter of vfprintf() in QNX libc
[in]...Variable-argument list as per format parameter
Returns
NvSuccess Success
NvError_FileWriteFailed Error if the return value of vfprintf() is equal or less than 0
Note
  • Allowed context for the API call
    • This function's safety follow vfprintf() in QNX libc.
  • Is thread safe: Yes
  • Required Privileges: N/A
  • API Group
    • Initialization: Yes
    • Run time: Yes
    • De-initialization: Yes

◆ NvOsFremove()

NvError NvOsFremove ( const char *  filename)

This function removes a file.

Parameters
[in]filenamePath to remove
Returns
NvSuccess Success
NvError_AccessDenied Error, access is denied due to permission or privileges
NvError_Busy Error, removing from file stream is delayed due to reading/writing of it
NvError_FileNotFound Error, Path is not found
NvError_ReadOnlyAttribute Error, tried to remove from read only
  • Is thread safe: Yes
  • Required Privileges: Privilege to remove the path, specified by filename parameter
  • API Group
    • Initialization: Yes
    • Run time: Yes
    • De-initialization: Yes

◆ NvOsMkdir()

NvError NvOsMkdir ( char *  dirname)

This function creates a directory.

Parameters
[in]dirnamePath to create directory, passed to path parameter of mkdir() in QNX libc
Returns
NvSuccess Success
NvError_AccessDenied Error, access is denied due to permission or privileges
NvError_FileNotFound Error, Path is not found
NvError_InvalidSize Error, file size is over the maximum file size
NvError_ReadOnlyAttribute Error, tried to remove from read only
  • Is thread safe: Yes
  • Required Privileges: N/A
  • API Group
    • Initialization: Yes
    • Run time: Yes
    • De-initialization: Yes

◆ NvOsReaddir()

NvError NvOsReaddir ( NvOsDirHandle  dir,
char *  name,
size_t  size 
)

This function gets an entry name in directory.

Parameters
[in]dirDirectory handle, passed to dirp parameter of readdir() in QNX libc
[out]nameStored a name of entry in directory
[in]sizelength of name parameter, the length of copied entry will not exceed size parameter
Returns
NvSuccess Success
NvError_EndOfDirList Error if readdir() in QNX libc, retrun NULL
  • Is thread safe: Yes
  • Required Privileges: N/A
  • API Group
    • Initialization: Yes
    • Run time: Yes
    • De-initialization: Yes