rte_version.h(3)
π rte_version.h β the manual page, but make it cute π
okay bestie, so this is rte_version.h(3) from the Library Functions Manual, and it's literally the file that tells you what version of DPDK you're messing with. no cap. if you need to know "what year is this release from, what month, is it a release candidate," this header is your girl. let's go. π¦
NAME β¨
rte_version.h
(that's it. that's the name. she's lowkey simple but she runs the whole version-vibe check.)
SYNOPSIS πΈ
#include <string.h>
#include <stdio.h>
Macros π
#define RTE_VERSION_NUM(a, b, c, d)
#define RTE_VERSION
Functions π
const char * rte_version_prefix (void)
unsigned int rte_version_year (void)
unsigned int rte_version_month (void)
unsigned int rte_version_minor (void)
const char * rte_version_suffix (void)
unsigned int rte_version_release (void)
const char * rte_version (void)
Detailed Description π
Definitions of DPDK version numbers π
fr fr, that's the whole point of this header: it holds the definitions of the DPDK version numbers so you can check them, compare them, print them, whatever your little heart desires.
Definition in file rte_version.h.
Macro Definition Documentation π§
#define RTE_VERSION_NUM( a, b, c, d) β¨
Value:
((a) << 24 | (b) << 16 | (c) << 8 | (d))
Macro to compute a version number usable for comparisons
so basically it squishes your a, b, c, d pieces into one single number with some bit shifting magic, and that number is what you use when you wanna compare versions. iconic behavior honestly. π₯
Definition at line 23 of file rte_version.h.
#define RTE_VERSION π
Value:
RTE_VERSION_NUM( \
RTE_VER_YEAR, \
RTE_VER_MONTH, \
RTE_VER_MINOR, \
RTE_VER_RELEASE)
All version numbers in one to compare with RTE_VERSION_NUM()
the way that this one just grabs RTE_VER_YEAR, RTE_VER_MONTH, RTE_VER_MINOR and RTE_VER_RELEASE and bundles them all into a single comparison-ready number?? obsessed. so when you wanna compare against RTE_VERSION_NUM(), this is the one you reach for. periodt. π
Definition at line 28 of file rte_version.h.
Function Documentation π
const char * rte_version_prefix (void )β bestie this one hands you back the DPDK version prefix string β¨unsigned int rte_version_year (void )β returns the DPDK version year, as in the actual year number ποΈunsigned int rte_version_month (void )β returns the DPDK version month πunsigned int rte_version_minor (void )β returns the DPDK minor version number πconst char * rte_version_suffix (void )β returns the DPDK version suffix for any release candidates π (yes, specifically for release candidates, iykyk)unsigned int rte_version_release (void )β returns the DPDK version release candidate value πconst char * rte_version (void )β the one that returns the version string π¦
Returns DPDK version string π
Author πΈ
Generated automatically by Doxygen for DPDK from the source code. (not me writing it by hand, the robots did this one. slay.)
okay that's the whole page, you made it, I'm so proud of you π«Ά this was DPDK Version 25.11.3, and the page itself is rte_version.h(3) β mwah, go version-check something and be the main character of your build system. πβ¨π
π¦ 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