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 from errno.h wherever 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 from 1000 to 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 β€” missing rte_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 of rte_errno here.

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