STRUCT CGX_EVENT_CB(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct cgx_event_cb(9) β€” like, the Kernel API Manual, bestie πŸŽ€

okay so picture this: we're deep in the Kernel API Manual, right? and there's this lil struct called cgx_event_cb and it's literally the whole personality of this page. it's giving "small but mighty" ✨ no cap.


🌸 NAME 🌸

struct cgx_event_cb β€” that's it, that's the name πŸ’… (the original page left the description blank and honestly? iconic. mysterious main character energy. we respect it.)


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the whole vibe, verbatim, don't @ me:

struct cgx_event_cb {
    int (*notify_link_chg)(struct cgx_link_event *event, void *data);
    void *data;
 };

like, look at her. two fields. absolutely slaying. πŸ’–


✨ Members ✨

  • notify_link_chg β€” bestie this is the callback for link change notification πŸ”₯ like when the link changes, this function gets the call. it takes a struct cgx_link_event *event and a void *data, and it returns an int. periodt.
  • data β€” the lil payload that gets passed to the callback function 🫢 it's a void *, so it's whatever you need it to be. iykyk.

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./drivers/net/ethernet/marvell/octeontx2/af/cgx.h β€” go read the source, bestie, it's right there 🌈

🧚 quick vibe check: this page is part of the Kernel API Manual, and the only reference listed is that header file above. don't invent extra lore, okay? 😭

and that's the whole page, fr fr πŸ’€ β€” sourced from ./drivers/net/ethernet/marvell..., dated October 2026, and yes she's still struct cgx_event_cb(9) at the bottom too πŸ’œ slay, bye πŸ“

πŸ“¦ where this page comes from