rte_errno.h(3)

πŸ“¦ version 26.03, in nixos 26.05, nixpkgs unstable

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 β€” 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. 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 of rte_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