rte_regexdev_rule(3)
π rte_regexdev_rule π
okay bestie, gather round, because today we're learning about rte_regexdev_rule from the DPDK library functions manual, and honestly? it's giving "small struct, big responsibilities." π
β¨ NAME β¨
rte_regexdev_rule β no cap, that's literally the whole name π
πΈ SYNOPSIS πΈ
#include <rte_regexdev.h>
π¦ Data Fields π¦
okay so this struct is stacked, here's the whole squad:
enum rte_regexdev_rule_op opuint16_t group_iduint32_t rule_idconst char * pcre_ruleuint16_t pcre_rule_len
π Detailed Description π
So what is this thing? It's a Structure to hold a RegEx rule attributes. that's it, that's the whole job, and it eats every single time π₯
It lives at Definition at line 954 of file rte_regexdev.h β that's its little home address in the source, remember it iykyk π
π Field Documentation π
π enum rte_regexdev_rule_op op
OP type of the rule β and the vibe check here is: it's either a OP_ADD or a OP_DELETE. those are the two moods fr fr π
Definition at line 955 of file rte_regexdev.h.
πΈ uint16_t group_id
Group identifier to which the rule belongs to. basically which friend group this rule is in π«Ά
Definition at line 957 of file rte_regexdev.h.
β uint32_t rule_id
Rule identifier which is returned on successful match. so when it hits, this is the lil name tag that comes back to you β¨
Definition at line 959 of file rte_regexdev.h.
π const char* pcre_rule
Buffer to hold the PCRE rule. the actual rule lives in here, main character energy honestly π
Definition at line 961 of file rte_regexdev.h.
π§ uint16_t pcre_rule_len
Length of the PCRE rule. because the buffer needs to know where it ends, iconic behavior, no notes π
Definition at line 963 of file rte_regexdev.h.
π Author π
Generated automatically by Doxygen for DPDK from the source code. not a human girlie writing this by hand, it's the robot doing its thing π€β¨
lowkey important reminder bestie: this whole page was generated by Doxygen for DPDK Version 25.11.3. so if you're running a different version, do a lil vibe check on your own headers before you go quoting line numbers at people ππ
okay that's the whole page, you ate it, periodt. go forth and regex responsibly π¦π
π¦ 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