NVIDIA DRIVE OS Linux SDK API Reference

5.1.12.4 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
nvscierror.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019, NVIDIA CORPORATION. All rights reserved.
3  *
4  * NVIDIA Corporation and its licensors retain all intellectual property
5  * and proprietary rights in and to this software, related documentation
6  * and any modifications thereto. Any use, reproduction, disclosure or
7  * distribution of this software and related documentation without an express
8  * license agreement from NVIDIA Corporation is strictly prohibited.
9  */
10 
19 #ifndef INCLUDED_NVSCI_ERROR_H
20 #define INCLUDED_NVSCI_ERROR_H
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
46 typedef enum {
47  /* Range 0x00000000 - 0x00FFFFFF : Common errors
48  * This range is used for errors common to all NvSci libraries. */
49 
51  NvSciError_Success = 0x00000000,
52 
54  NvSciError_Unknown = 0x00000001,
55 
56  /* Generic errors */
77 
78  /* Function parameter errors */
82  NvSciError_BadAddress = 0x00000101,
84  NvSciError_TooBig = 0x00000102,
86  NvSciError_Overflow = 0x00000103,
87 
88  /* Timing/temporary errors */
90  NvSciError_Timeout = 0x00000200,
92  NvSciError_TryItAgain = 0x00000201,
94  NvSciError_Busy = 0x00000202,
97 
98  /* Device errors */
102  NvSciError_NoSpace = 0x00001001,
106  NvSciError_IO = 0x00001003,
109 
110  /* File system errors */
118  NvSciError_FileExists = 0x00001103,
128  NvSciError_FileTooBig = 0x00001108,
136  NvSciError_EndOfFile = 0x0000110C,
137 
138 
139  /* Communication errors */
145  NvSciError_NoData = 0x00001202,
151  NvSciError_NoRemote = 0x00001205,
152 
153  /* Process/thread errors */
156 
157  /* Mutex errors */
164 
165  /* NvSci attribute list errors */
170 
172  NvSciError_CommonEnd = 0x00FFFFFF,
173 
174 
175  /* Range 0x01000000 - 0x01FFFFFF : NvSciBuf errors */
180 
181 
182  /* Range 0x02000000 - 0x02FFFFFF : NvSciSync errors */
189  /* End of range for NvScSync errors */
191 
192 
193  /* Range 0x03000000 - 0x03FFFFFF : NvSciStream errors */
194 
207 
215 
225 
228 
229 
230  /* Range 0x04000000 - 0x04FFFFFF : NvSciIpc errors */
235 
236 
237  /* Range 0x05000000 - 0x05FFFFFF : NvSciEvent errors */
242 
243 } NvSciError;
244 
249 #ifdef __cplusplus
250 }
251 #endif
252 
253 #endif /* INCLUDED_NVSCI_ERROR_H */
Unidentified error with no additional info.
Definition: nvscierror.h:54
[EIO] Input/output error
Definition: nvscierror.h:106
[ENOMEM] Not enough memory
Definition: nvscierror.h:72
[ENOSYS] Feature is not implemented
Definition: nvscierror.h:58
[ENOTSUP] Feature is not supported
Definition: nvscierror.h:60
Unidentified NvSciIpc error with no additional info.
Definition: nvscierror.h:232
Unidentified NvSciEvent error with no additional info.
Definition: nvscierror.h:239
[ETXTBSY] Text file is busy
Definition: nvscierror.h:124
[EBADFSYS] Corrupted file system detected
Definition: nvscierror.h:116
[ESRCH] No such process
Definition: nvscierror.h:155
Operation can only be performed in safety phase.
Definition: nvscierror.h:204
[ENODEV] No such device
Definition: nvscierror.h:100
[ELOOP] Too many levels of symbolic links
Definition: nvscierror.h:130
[EISDIR] File is a directory
Definition: nvscierror.h:120
[EROFS] Read-only file system
Definition: nvscierror.h:122
Internal stream resource failure occurred.
Definition: nvscierror.h:198
Resource failed.
Definition: nvscierror.h:76
[EAGAIN] Resource unavailable.
Definition: nvscierror.h:92
Operation can only be performed in setup phase.
Definition: nvscierror.h:202
[ENODATA] No message data available
Definition: nvscierror.h:145
Operation requires stream be fully connected.
Definition: nvscierror.h:200
End of file reached.
Definition: nvscierror.h:136
[EOK] No error
Definition: nvscierror.h:51
End of range for NvSciIpc errors.
Definition: nvscierror.h:234
[EINTR] An interrupt ocurred
Definition: nvscierror.h:96
[ENOREMOTE] Remote node doesn't exist
Definition: nvscierror.h:151
[ENOSPC] No space left on device
Definition: nvscierror.h:102
Required resource is not initialized.
Definition: nvscierror.h:70
[EMSGSIZE] Message is too large
Definition: nvscierror.h:149
[ENAMETOOLONG] File name is too long
Definition: nvscierror.h:126
[EOVERFLOW] Value too large for data type
Definition: nvscierror.h:86
[EALREADY] Pending connection is already in progress
Definition: nvscierror.h:143
[EFAULT] Invalid address
Definition: nvscierror.h:82
[ENOENT] No such file or directory
Definition: nvscierror.h:112
Not enough (non-memory) resources.
Definition: nvscierror.h:74
End of range for NvSciStream errors.
Definition: nvscierror.h:227
[EFBIG] File is too large
Definition: nvscierror.h:128
[EOWNERDEAD] Previous owner died while holding mutex
Definition: nvscierror.h:161
[EMFILE] Too many open files in process
Definition: nvscierror.h:132
Unidentified NvSciSync error with no additional info.
Definition: nvscierror.h:184
[EEXIST] File already exists
Definition: nvscierror.h:118
[ENXIO] No such device or address
Definition: nvscierror.h:104
[EPERM] No permission to perform operation
Definition: nvscierror.h:64
Invalid output index was passed to a block.
Definition: nvscierror.h:224
[EBUSY] Resource is busy
Definition: nvscierror.h:94
[ECONNRESET] Connection was closed or lost
Definition: nvscierror.h:141
Unidentified NvSciStream error with no additional info.
Definition: nvscierror.h:196
End of range for NvSciEvent errors.
Definition: nvscierror.h:241
Could not validate attributes.
Definition: nvscierror.h:169
Unidentified NvSciBuf error with no additional info.
Definition: nvscierror.h:177
These stream errors represent failures detected from lower level system components.
Definition: nvscierror.h:214
[ENFILE] Too many open files in system
Definition: nvscierror.h:134
Requested operation is not legal.
Definition: nvscierror.h:68
End of range for NvSciBuf errors.
Definition: nvscierror.h:179
[E2BIG] Parameter list too long
Definition: nvscierror.h:84
[ENOTRECOVERABLE] Mutex damaged by previous owner's death
Definition: nvscierror.h:159
[ETIMEDOUT] Operation timed out
Definition: nvscierror.h:90
[ENOTTY] Inappropriate I/O control operation
Definition: nvscierror.h:108
Could not reconcile attributes.
Definition: nvscierror.h:167
Unsupported configuration.
Definition: nvscierror.h:186
Provided fence is cleared.
Definition: nvscierror.h:188
[EBADF] Bad file descriptor
Definition: nvscierror.h:114
End of range for common error codes.
Definition: nvscierror.h:172
Resource is in wrong state to perform operation.
Definition: nvscierror.h:66
[EDEADLK] Taking ownership would cause deadlock
Definition: nvscierror.h:163
[EACCES] Access to resource denied
Definition: nvscierror.h:62
[ENOMSG] No message of the desired type available
Definition: nvscierror.h:147
No stream packet available.
Definition: nvscierror.h:206
[EINVAL] Invalid parameter value
Definition: nvscierror.h:80
These stream errors represent internal failures which should never be possible in a production system...
Definition: nvscierror.h:222
NvSciError
Return/error codes for all NvSci functions.
Definition: nvscierror.h:46