rte_swx_keycmp.h(3)

πŸ’– rte_swx_keycmp.h β€” like, the key-comparison girlies of DPDK πŸ’–

okay bestie, so this is rte_swx_keycmp.h(3), a whole Library Functions Manual situation, and yes it's giving "small header, big personality." It lives in the DPDK house. Come sit with me. 🫢


✨ NAME ✨

rte_swx_keycmp.h β€” that's it, that's the name, she's lowkey mysterious like that. πŸ’…


🌸 SYNOPSIS 🌸

Pull her in like this:

#include <stdint.h>
#include <string.h>

πŸŽ€ Typedefs

typedef uint32_t(* rte_swx_keycmp_func_t) (void *key1, void *key2,
    uint32_t key_size)

πŸ¦‹ Functions

rte_swx_keycmp_func_t rte_swx_keycmp_func_get (uint32_t key_size)

πŸ‘‘ Detailed Description πŸ‘‘

RTE SWX Key Comparison Functions β€” the whole vibe of the file, fr fr. That's the summary. Iconic. ✨

Definition in file rte_swx_keycmp.h.


πŸ’œ Typedef Documentation πŸ’œ

typedef uint32_t(* rte_swx_keycmp_func_t) (void *key1, void *key2, uint32_t key_size)

not me introducing you to the Key comparison function prototype β€” she's the blueprint, the main character energy of this whole header. πŸŽ€

Parameters

  • key1 β€” First key to compare. Must be non-NULL. (Bestie. Do NOT pass NULL. 😭)
  • key2 β€” Second key to compare. Must be non-NULL. (Same energy. Non-negotiable. πŸ™ˆ)
  • key_size β€” Key size in bytes.

Returns

  • 0 when keys are different, 1 when keys are equal. Periodt. No in-between, she's a binary queen. πŸ’…

Definition at line 31 of file rte_swx_keycmp.h.


🌈 Function Documentation 🌈

rte_swx_keycmp_func_t rte_swx_keycmp_func_get (uint32_t key_size)

Key comparison function get β€” she fetches you a key comparison function, based on how big your key is. Lowkey the plug. πŸ”₯

Parameters

  • key_size β€” Key size in bytes.

Returns

  • Key comparison function for the given key size. Slay, hand it to you on a silver platter. ⭐

🌸 Author 🌸

Generated automatically by Doxygen for DPDK from the source code. (Yes the robot wrote it, but she still ate. πŸ€–πŸ’–)


and that's the whole page, bestie!! πŸ₯° no cap, every flag, param and return value stayed exactly where it belongs β€” we just gave it a glow-up ✨

bye babes, go compare some keys responsibly πŸ’œπŸ¦‹

DPDK β€” Version 25.11.3 🌈 rte_swx_keycmp.h(3) 🌈 mwah, talk laterrr πŸ’…πŸ’–

πŸ“¦ where this page comes from