LIBETH_XDP_DEFINE_RUN_PROG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… LIBETH_XDP_DEFINE_RUN_PROG πŸ’…

okay so bestie, this is a page from the Kernel API Manual (libeth_xdp_define_run_prog(9), section 9, iykyk) and it's literally just one macro that builds a whole function for you, so let's get into it ✨


πŸŽ€ NAME πŸŽ€

LIBETH_XDP_DEFINE_RUN_PROG β€” define a driver XDP program run function πŸ¦‹

Like, it makes the function. You don't write the function. The macro writes the function. main character energy, honestly πŸ‘‘


🌸 SYNOPSIS 🌸

LIBETH_XDP_DEFINE_RUN_PROG (name , flush );

that's it. that's the whole call. two things in, one function out πŸ’–


✨ ARGUMENTS ✨

  • name β€” the name of the function you want to define 🏷️ like, whatever you call it is what it's gonna be called, no cap
  • flush β€” the driver callback that flushes an `XDP_TX` bulk 🚿🫧 (yes, it's a bulk, and yes, someone's gotta flush it)

🫢 SEE ALSO 🫢

okay this is the part where the page just dumps the entire friend group and honestly? iconic. no gatekeeping here, the whole ./include/net/libeth/xdp.h fam shows up πŸ’€

also bestie, notice enum (anonymous)(9) shows up twice β€” that's not a typo on my end, that's literally what the page says, so I'm keeping it fr fr πŸ™ˆ

and that's the whole page! before you go β€” the source file lives at ./include/net/libeth and this edition is dated October 2026 πŸ—“οΈβœ¨ so yeah, go define that run function, you're gonna slay it πŸ’œπŸŽ€πŸ¦‹

πŸ“¦ where this page comes from