rte_pmd_cnxk_eventdev.h(3)

πŸ’– rte_pmd_cnxk_eventdev.h β€” bestie edition πŸ’–

okay so this is a page from the Library Functions Manual, and the star of the show is rte_pmd_cnxk_eventdev.h. no cap, it's giving "small header, big job" energy. let's get into it 🫢


✨ NAME ✨

rte_pmd_cnxk_eventdev.h β€” literally the whole point of this page πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <rte_common.h>
#include <rte_compat.h>

🌸 Functions 🌸

__rte_experimental void rte_pmd_cnxk_eventdev_wait_head (uint8_t dev,
    uint8_t port)
__rte_experimental uint8_t rte_pmd_cnxk_eventdev_is_head (uint8_t dev,
    uint8_t port)

two little functions, both marked __rte_experimental (iykyk β€” that's the "we're still cooking on this one" flag, so don't build your whole personality on it staying the same πŸ™ˆ).


🌈 Detailed Description 🌈

Marvell CNXK eventdev PMD specific functions. periodt ✨

Definition in file rte_pmd_cnxk_eventdev.h. yes bestie, the header is the documentation for itself, that's just how Doxygen does it πŸ’€


πŸ‘‘ Function Documentation πŸ‘‘

πŸŽ€ __rte_experimental void rte_pmd_cnxk_eventdev_wait_head (uint8_t dev, uint8_t port)

okay so this one says: wait for the currently active flow context on the event port to become HEAD of the flow-chain. like, literally sit there and chill until it's front of the line, main character at the head of the chain πŸ’–

Parameters

  • dev β€” Event device identifier.
  • port β€” Event port identifier.

🧚 __rte_experimental uint8_t rte_pmd_cnxk_eventdev_is_head (uint8_t dev, uint8_t port)

and this one is the vibe check, bestie: check if the currently active flow context on the event port is the HEAD of the flow-chain. yes or yes? no waiting around, just a peek ✨

Parameters

  • dev β€” Event device identifier.
  • port β€” Event port identifier.

Returns

  • Status of the currently held flow context
  • 0 β€” not the head of the flow-chain
  • 1 β€” head of the flow-chain

so 0 is the "aww not yet πŸ₯²" and 1 is the "slay, you're the head now πŸ”₯".


πŸ’œ Author πŸ’œ

Generated automatically by Doxygen for DPDK from the source code. so no human hand typed this, Doxygen just did its little robot thing πŸ€–πŸ’…


tiny reminder bestie: that __rte_experimental tag means these are still experimental, so treat them accordingly β€” iconic but not frozen 🧊

k bye, this was rte_pmd_cnxk_eventdev.h(3) from DPDK, Version 25.11.3 β€” mwah, take care of your flow-chains πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from