rte_errno.h(3)
rte_errno.h π
okay so welcome to the Library Functions Manual page for rte_errno.h, bestie β this is the little header that handles error-cause tracking, and yes itβs giving very important backstage-pass energy. π
β¨ NAME β¨
rte_errno.h β the API for error cause tracking. Thatβs the name, no cap. π
πΈ SYNOPSIS πΈ
#include <rte_per_lcore.h>
Macros
#define rte_errno RTE_PER_LCORE(_rte_errno)
#define __ELASTERROR 1000
Enumerations
enum { RTE_MIN_ERRNO = __ELASTERROR, E_RTE_SECONDARY, E_RTE_NO_CONFIG,
RTE_MAX_ERRNO }
Functions
RTE_DECLARE_PER_LCORE (int, _rte_errno)
const char * rte_strerror (int errnum)
π¦ Detailed Description π¦
API for error cause tracking. Literally the whole vibe. π«Ά
Definition in file rte_errno.h.
π Macro Definition Documentation π
#define rte_errno RTE_PER_LCORE(_rte_errno)
Error number value, stored per-thread, which can be queried after calls to certain functions to determine why those functions failed. Yes bestie, itβs the βwhy did that flop?β tracker. π
Uses standard values from errno.h wherever possible, with a small number of additional possible values for RTE-specific conditions.
Definition at line 29 of file rte_errno.h. β
#define __ELASTERROR 1000
Check if we have a defined value for the max system-defined errno values. If no max is defined, start from 1000 to prevent overlap with standard values. Very βwe need our own laneβ of it. π
Definition at line 49 of file rte_errno.h. β¨
π Enumeration Type Documentation π
anonymous enum
Error types. Iconic little lineup, honestly. π
Enumerator:
RTE_MIN_ERRNOβ Start numbering above std errno vals.E_RTE_SECONDARYβ Operation not allowed in secondary processes.E_RTE_NO_CONFIGβ Missingrte_config.RTE_MAX_ERRNOβ Max RTE error number.
Definition at line 53 of file rte_errno.h. π¦
π«Ά Function Documentation π«Ά
RTE_DECLARE_PER_LCORE (int , _rte_errno )
Per core error number. Short, sweet, per-core. π
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. So itβs out here translating error-code chaos into actual words, periodt. π¬
Parameters
errnumβ The error number to be looked up β generally the value ofrte_errno.
Returns
A pointer to a thread-local string containing the text describing the error. Thread-local and precious. π§
π Author π
Generated automatically by Doxygen for DPDK from the source code. The robots did this one, bestie. π€β¨
mwah π β source: DPDK, version: 26.03.0, page: rte_errno.h(3). Thatβs the cute little footer sign-off, and yes it ate. ππ
π¦ where this page comes from
- nixos 26.05: dpdk 26.03
- nixpkgs unstable: dpdk 26.03
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms