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 op
  • uint16_t group_id
  • uint32_t rule_id
  • const char * pcre_rule
  • uint16_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