STRUCT CGX_EVENT_CB(9)
π 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 astruct cgx_link_event *eventand avoid *data, and it returns anint. periodt.dataβ the lil payload that gets passed to the callback function π«Ά it's avoid *, 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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms