rte_errno.h(3)
π rte_errno.h β the DPDK manual page, bestie edition
okay so this is the rte_errno.h page from the DPDK manual, section 3 (library functions, iykyk). it's literally the API for error cause tracking β like, when a function ghosts you and fails, this is how you find out why π΅οΈββοΈ
β¨ NAME β¨
rte_errno.h β periodt, that's the name, she's an icon, she's a header π
πΈ 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 β¨
Definition in file rte_errno.h.
π₯ Macro Definition Documentation π₯
#define rte_errno RTE_PER_LCORE(_rte_errno)
Error number value, stored per-thread, which you can query after calls to certain functions to figure out why those functions failed π like a little receipt for your disappointment, but make it useful.
Uses standard values from errno.h wherever possible, plus a small number of extra 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 defined, start from 1000 to prevent overlap with standard values π
Definition at line 49 of file rte_errno.h.
β Enumeration Type Documentation β
anonymous enum
Error types π
Enumerator
RTE_MIN_ERRNOβ Start numbering above std errno valsE_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 β¨
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 basically it's a translator for your errors π«Ά
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 π
π Author π
Generated automatically by Doxygen for DPDK from the source code. not me writing a whole personality for a generated doc, but here we are π
ngl bestie, if you're reading this at 3am debugging a secondary process that can't find its config, I believe in you π«Άπ
kisses and good vibes, this was Version 25.11.0, dated Fri Jan 30 2026 β go slay those errnos β¨ππ
π¦ where this page comes from
- centos-stream 9: dpdk-devel 2:25.11-1.el9 Β· BSD and LGPLv2 and GPLv2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms