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 vals
  • E_RTE_SECONDARY β€” Operation not allowed in secondary processes πŸ™ˆ
  • E_RTE_NO_CONFIG β€” Missing rte_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 of rte_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