LIBETH_XSK_DEFINE_RUN(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… LIBETH_XSK_DEFINE_RUN πŸ’…

okay so bestie, welcome to the LIBETH_XSK_DEFINE_RUN(9) page from the Kernel API Manual ✨ this one's a macro that literally builds a whole driver buffer process for you β€” the run + pass function, no cap 🫢


🌸 NAME 🌸

LIBETH_XSK_DEFINE_RUN β€” it defines a driver buffer process, aka the run + pass function πŸ’–


✨ SYNOPSIS ✨

LIBETH_XSK_DEFINE_RUN (name , run , flush , populate );

like, that's the whole thing. four things go in, a function comes out πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • name β€” the name of the function you're defining. yeah. it names the thing it makes. iconic behaviour honestly πŸ‘‘
  • run β€” the name of the XDP prog run function you wanna define 🌈
  • flush β€” the driver callback that flushes an XSk XDP_TX bulk πŸ”₯ (yes the double backticks are in the original, we don't question the elders πŸ’€)
  • populate β€” the driver callback that fills an skb with HW descriptor info 🧚
ngl bestie, these are callbacks and names, so double-check you're passing what you actually mean β€” this macro is generating real functions for you, not just vibing 😭

πŸŽ€ SEE ALSO πŸŽ€

the whole friend group, fr fr β€” go read these too πŸ’œ


and that's the page!! πŸ’… this lil beauty lives in ./include/net/libeth, dated October 2026, manual name LIBETH_XSK_DEFINE_RUN(9) β€” go forth and define your run + pass function, bestie, you're gonna slay πŸ¦‹βœ¨πŸ’–

πŸ“¦ where this page comes from