NVIDIA DRIVE OS Linux SDK API Reference

5.1.9.0 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

Detailed Description

Contains error code enumeration and helper macros.

Typedefs

typedef enum NvSciErrorRec NvSciError
 Return/error codes for all NvSci functions. More...
 

Enumerations

enum  NvSciErrorRec {
  NvSciError_Success = 0x00000000,
  NvSciError_Unknown = 0x00000001,
  NvSciError_NotImplemented = 0x00000010,
  NvSciError_NotSupported = 0x00000011,
  NvSciError_AccessDenied = 0x00000020,
  NvSciError_NotPermitted = 0x00000021,
  NvSciError_InvalidState = 0x00000022,
  NvSciError_InvalidOperation = 0x00000023,
  NvSciError_NotInitialized = 0x00000024,
  NvSciError_InsufficientMemory = 0x00000030,
  NvSciError_InsufficientResource = 0x00000031,
  NvSciError_ResourceError = 0x00000032,
  NvSciError_BadParameter = 0x00000100,
  NvSciError_BadAddress = 0x00000101,
  NvSciError_TooBig = 0x00000102,
  NvSciError_Overflow = 0x00000103,
  NvSciError_Timeout = 0x00000200,
  NvSciError_TryItAgain = 0x00000201,
  NvSciError_Busy = 0x00000202,
  NvSciError_InterruptedCall = 0x00000203,
  NvSciError_NoSuchDevice = 0x00001000,
  NvSciError_NoSpace = 0x00001001,
  NvSciError_NoSuchDevAddr = 0x00001002,
  NvSciError_IO = 0x00001003,
  NvSciError_InvalidIoctlNum = 0x00001004,
  NvSciError_NoSuchEntry = 0x00001100,
  NvSciError_BadFileDesc = 0x00001101,
  NvSciError_CorruptedFileSys = 0x00001102,
  NvSciError_FileExists = 0x00001103,
  NvSciError_IsDirectory = 0x00001104,
  NvSciError_ReadOnlyFileSys = 0x00001105,
  NvSciError_TextFileBusy = 0x00001106,
  NvSciError_FileNameTooLong = 0x00001107,
  NvSciError_FileTooBig = 0x00001108,
  NvSciError_TooManySymbolLinks = 0x00001109,
  NvSciError_TooManyOpenFiles = 0x0000110A,
  NvSciError_FileTableOverflow = 0x0000110B,
  NvSciError_EndOfFile = 0x0000110C,
  NvSciError_ConnectionReset = 0x00001200,
  NvSciError_AlreadyInProgress = 0x00001201,
  NvSciError_NoData = 0x00001202,
  NvSciError_NoDesiredMessage = 0x00001203,
  NvSciError_MessageSize = 0x00001204,
  NvSciError_NoRemote = 0x00001205,
  NvSciError_NoSuchProcess = 0x00002000,
  NvSciError_MutexNotRecoverable = 0x00002100,
  NvSciError_LockOwnerDead = 0x00002101,
  NvSciError_ResourceDeadlock = 0x00002102,
  NvSciError_ReconciliationFailed = 0x00010100,
  NvSciError_AttrListValidationFailed = 0x00010101,
  NvSciError_CommonEnd = 0x00FFFFFF,
  NvSciError_NvSciBufUnknown = 0x01000000,
  NvSciError_NvSciBufEnd = 0x01FFFFFF,
  NvSciError_NvSciSyncUnknown = 0x02000000,
  NvSciError_UnsupportedConfig = 0x02000001,
  NvSciError_ClearedFence = 0x02000002,
  NvSciError_NvSciSyncEnd = 0x02FFFFFF,
  NvSciError_NvSciStreamUnknown = 0x03000000,
  NvSciError_StreamInternalError = 0x03000001,
  NvSciError_StreamNotConnected = 0x03000200,
  NvSciError_StreamNotSetupPhase = 0x03000201,
  NvSciError_StreamNotSafetyPhase = 0x03000202,
  NvSciError_NoStreamPacket = 0x03001000,
  NvSciError_StreamLockFailed = 0x03400000,
  NvSciError_StreamBadSrcIndex = 0x03800000,
  NvSciError_StreamBadDstIndex = 0x03800001,
  NvSciError_NvSciStreamEnd = 0x03FFFFFF,
  NvSciError_NvSciIpcUnknown = 0x04000000,
  NvSciError_NvSciIpcEnd = 0x04FFFFFF,
  NvSciError_NvSciEventUnknown = 0x05000000,
  NvSciError_NvSciEventEnd = 0x05FFFFFF
}
 Return/error codes for all NvSci functions. More...
 

Typedef Documentation

typedef enum NvSciErrorRec NvSciError

Return/error codes for all NvSci functions.

This enumeration contains unique return/error codes to identify the source of a failure. Some errors have direct correspondence to standard errno.h codes, indicated [IN BRACKETS], and may result from failures in lower level system calls. Others indicate failures specific to misuse of NvSci library function.

Enumeration Type Documentation

Return/error codes for all NvSci functions.

This enumeration contains unique return/error codes to identify the source of a failure. Some errors have direct correspondence to standard errno.h codes, indicated [IN BRACKETS], and may result from failures in lower level system calls. Others indicate failures specific to misuse of NvSci library function.

Enumerator
NvSciError_Success 

[EOK] No error

NvSciError_Unknown 

Unidentified error with no additional info.

NvSciError_NotImplemented 

[ENOSYS] Feature is not implemented

NvSciError_NotSupported 

[ENOTSUP] Feature is not supported

NvSciError_AccessDenied 

[EACCES] Access to resource denied

NvSciError_NotPermitted 

[EPERM] No permission to perform operation

NvSciError_InvalidState 

Resource is in wrong state to perform operation.

NvSciError_InvalidOperation 

Requested operation is not legal.

NvSciError_NotInitialized 

Required resource is not initialized.

NvSciError_InsufficientMemory 

[ENOMEM] Not enough memory

NvSciError_InsufficientResource 

Not enough (non-memory) resources.

NvSciError_ResourceError 

Resource failed.

NvSciError_BadParameter 

[EINVAL] Invalid parameter value

NvSciError_BadAddress 

[EFAULT] Invalid address

NvSciError_TooBig 

[E2BIG] Parameter list too long

NvSciError_Overflow 

[EOVERFLOW] Value too large for data type

NvSciError_Timeout 

[ETIMEDOUT] Operation timed out

NvSciError_TryItAgain 

[EAGAIN] Resource unavailable.

Try again.

NvSciError_Busy 

[EBUSY] Resource is busy

NvSciError_InterruptedCall 

[EINTR] An interrupt ocurred

NvSciError_NoSuchDevice 

[ENODEV] No such device

NvSciError_NoSpace 

[ENOSPC] No space left on device

NvSciError_NoSuchDevAddr 

[ENXIO] No such device or address

NvSciError_IO 

[EIO] Input/output error

NvSciError_InvalidIoctlNum 

[ENOTTY] Inappropriate I/O control operation

NvSciError_NoSuchEntry 

[ENOENT] No such file or directory

NvSciError_BadFileDesc 

[EBADF] Bad file descriptor

NvSciError_CorruptedFileSys 

[EBADFSYS] Corrupted file system detected

NvSciError_FileExists 

[EEXIST] File already exists

NvSciError_IsDirectory 

[EISDIR] File is a directory

NvSciError_ReadOnlyFileSys 

[EROFS] Read-only file system

NvSciError_TextFileBusy 

[ETXTBSY] Text file is busy

NvSciError_FileNameTooLong 

[ENAMETOOLONG] File name is too long

NvSciError_FileTooBig 

[EFBIG] File is too large

NvSciError_TooManySymbolLinks 

[ELOOP] Too many levels of symbolic links

NvSciError_TooManyOpenFiles 

[EMFILE] Too many open files in process

NvSciError_FileTableOverflow 

[ENFILE] Too many open files in system

NvSciError_EndOfFile 

End of file reached.

NvSciError_ConnectionReset 

[ECONNRESET] Connection was closed or lost

NvSciError_AlreadyInProgress 

[EALREADY] Pending connection is already in progress

NvSciError_NoData 

[ENODATA] No message data available

NvSciError_NoDesiredMessage 

[ENOMSG] No message of the desired type available

NvSciError_MessageSize 

[EMSGSIZE] Message is too large

NvSciError_NoRemote 

[ENOREMOTE] Remote node doesn't exist

NvSciError_NoSuchProcess 

[ESRCH] No such process

NvSciError_MutexNotRecoverable 

[ENOTRECOVERABLE] Mutex damaged by previous owner's death

NvSciError_LockOwnerDead 

[EOWNERDEAD] Previous owner died while holding mutex

NvSciError_ResourceDeadlock 

[EDEADLK] Taking ownership would cause deadlock

NvSciError_ReconciliationFailed 

Could not reconcile attributes.

NvSciError_AttrListValidationFailed 

Could not validate attributes.

NvSciError_CommonEnd 

End of range for common error codes.

NvSciError_NvSciBufUnknown 

Unidentified NvSciBuf error with no additional info.

NvSciError_NvSciBufEnd 

End of range for NvSciBuf errors.

NvSciError_NvSciSyncUnknown 

Unidentified NvSciSync error with no additional info.

NvSciError_UnsupportedConfig 

Unsupported configuration.

NvSciError_ClearedFence 

Provided fence is cleared.

NvSciError_NvSciSyncEnd 
NvSciError_NvSciStreamUnknown 

Unidentified NvSciStream error with no additional info.

NvSciError_StreamInternalError 

Internal stream resource failure occurred.

NvSciError_StreamNotConnected 

Operation requires stream be fully connected.

NvSciError_StreamNotSetupPhase 

Operation can only be performed in setup phase.

NvSciError_StreamNotSafetyPhase 

Operation can only be performed in safety phase.

NvSciError_NoStreamPacket 

No stream packet available.

NvSciError_StreamLockFailed 

These stream errors represent failures detected from lower level system components.

They generally are not due to any user error, but might be caused by the system running out of resources.Failed to acquire lock on mutex used to ensure thread safety

NvSciError_StreamBadSrcIndex 

These stream errors represent internal failures which should never be possible in a production system.

They exist only for internal unit testing.Invalid input index was passed to a block.

NvSciError_StreamBadDstIndex 

Invalid output index was passed to a block.

NvSciError_NvSciStreamEnd 

End of range for NvSciStream errors.

NvSciError_NvSciIpcUnknown 

Unidentified NvSciIpc error with no additional info.

NvSciError_NvSciIpcEnd 

End of range for NvSciIpc errors.

NvSciError_NvSciEventUnknown 

Unidentified NvSciEvent error with no additional info.

NvSciError_NvSciEventEnd 

End of range for NvSciEvent errors.

Definition at line 40 of file nvscierror.h.