.TH "rte_errno.h" 3 "Version 25.11.0" "DPDK" \" -*- nroff -*-
.ad l
.nh
.SH NAME
rte_errno.h
.SH SYNOPSIS
.br
.PP
\fR#include <rte_per_lcore\&.h>\fP
.br

.SS "Macros"

.in +1c
.ti -1c
.RI "#define \fBrte_errno\fP   \fBRTE_PER_LCORE\fP(_rte_errno)"
.br
.ti -1c
.RI "#define \fB__ELASTERROR\fP   1000"
.br
.in -1c
.SS "Enumerations"

.in +1c
.ti -1c
.RI "enum { \fBRTE_MIN_ERRNO\fP = __ELASTERROR, \fBE_RTE_SECONDARY\fP, \fBE_RTE_NO_CONFIG\fP, \fBRTE_MAX_ERRNO\fP }"
.br
.in -1c
.SS "Functions"

.in +1c
.ti -1c
.RI "\fBRTE_DECLARE_PER_LCORE\fP (int, _rte_errno)"
.br
.ti -1c
.RI "const char * \fBrte_strerror\fP (int errnum)"
.br
.in -1c
.SH "Detailed Description"
.PP 
API for error cause tracking 
.PP
Definition in file \fBrte_errno\&.h\fP\&.
.SH "Macro Definition Documentation"
.PP 
.SS "#define rte_errno   \fBRTE_PER_LCORE\fP(_rte_errno)"
Error number value, stored per-thread, which can be queried after calls to certain functions to determine why those functions failed\&.

.PP
Uses standard values from errno\&.h wherever possible, with a small number of additional possible values for RTE-specific conditions\&. 
.PP
Definition at line \fB29\fP of file \fBrte_errno\&.h\fP\&.
.SS "#define __ELASTERROR   1000"
Check if we have a defined value for the max system-defined errno values\&. if no max defined, start from 1000 to prevent overlap with standard values 
.PP
Definition at line \fB49\fP of file \fBrte_errno\&.h\fP\&.
.SH "Enumeration Type Documentation"
.PP 
.SS "anonymous enum"
Error types 
.PP
\fBEnumerator\fP
.in +1c
.TP
\f(BIRTE_MIN_ERRNO \fP
Start numbering above std errno vals 
.TP
\f(BIE_RTE_SECONDARY \fP
Operation not allowed in secondary processes 
.TP
\f(BIE_RTE_NO_CONFIG \fP
Missing rte_config 
.TP
\f(BIRTE_MAX_ERRNO \fP
Max RTE error number 
.PP
Definition at line \fB53\fP of file \fBrte_errno\&.h\fP\&.
.SH "Function Documentation"
.PP 
.SS "RTE_DECLARE_PER_LCORE (int , _rte_errno )"
Per core error number\&. 
.SS "const char * rte_strerror (int errnum)"
Function which returns a printable string describing a particular error code\&. For non-RTE-specific error codes, this function returns the value from the libc strerror function\&.

.PP
\fBParameters\fP
.RS 4
\fIerrnum\fP The error number to be looked up - generally the value of rte_errno 
.RE
.PP
\fBReturns\fP
.RS 4
A pointer to a thread-local string containing the text describing the error\&. 
.RE
.PP

.SH "Author"
.PP 
Generated automatically by Doxygen for DPDK from the source code\&.
