rte_errno.h(3)
π rte_errno.h π
okay bestie, so this is rte_errno.h from the Library Functions Manual β yes it's a header file, yes it gets its own manpage, and yes that's iconic of it. sit down, grab a π, let's get into it.
β¨ NAME β¨
rte_errno.h β that's the whole name, she's lowkey mysterious like that π
πΈ 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 β
it's the API for error cause tracking, periodt. that's the vibe. it exists so you can figure out why something failed instead of just sitting there like π.
Definition in file rte_errno.h.
π Macro Definition Documentation π
#define rte_errno RTE_PER_LCORE(_rte_errno)β the error number value, and the way that it's stored per-thread?? obsessed. you query it after calls to certain functions to figure out why those functions failed. it uses standard values fromerrno.hwherever possible, plus a small number of extra possible values for RTE-specific conditions. no cap.
Definition at line 29 of file rte_errno.h.
#define __ELASTERROR 1000β this one checks if we have a defined value for the max system-defined errno values. and if there's no max defined, it starts from1000to prevent overlap with the standard values. preventing overlap?? that's just good manners fr fr.
Definition at line 49 of file rte_errno.h.
π«Ά Enumeration Type Documentation π«Ά
anonymous enum
Error types β¨ (she has no name but she has range)
Enumerator
RTE_MIN_ERRNOβ start numbering above std errno vals. like, we are not stepping on their turf.E_RTE_SECONDARYβ operation not allowed in secondary processes. big "not you, bestie" energy.E_RTE_NO_CONFIGβ missingrte_config. πRTE_MAX_ERRNOβ max RTE error number. the ceiling. the limit. the final boss.
Definition at line 53 of file rte_errno.h.
π Function Documentation π
RTE_DECLARE_PER_LCORE (int , _rte_errno )
per core error number. that's it, that's the whole thing π
const char * rte_strerror (int errnum)
okay so this one is a function that returns a printable string describing a particular error code β she translates for you π§β¨. and for non-RTE-specific error codes, this function returns the value from the libc strerror function. delegation queen.
Parameters
errnumβ the error number to be looked up, and generally you're gonna pass the value ofrte_errnohere.
Returns
- a pointer to a thread-local string containing the text describing the error. thread-local string, main character energy, she's yours and yours alone π
π Author π
Generated automatically by Doxygen for DPDK from the source code. (not a human, just a robot doing its little thing, and honestly? slay.)
aaaand that's the whole page bestie, you ate π this was DPDK Version 25.11.3, rte_errno.h(3), and no it is not a Library Functions Manual original β it was auto-generated with love (by Doxygen, for DPDK) so go forth and handle your errnos responsibly πΈπ¦β¨ periodt.
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms