LIBETH_XSK_DEFINE_RUN(9)
π 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 XSkXDP_TXbulk π₯ (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 π
- the kernel file
./include/net/libeth/xsk.h libeth_xsk_tx_queue_head(9)libeth_xsk_tx_queue_frag(9)libeth_xsk_tx_queue_bulk(9)libeth_xsk_tx_fill_buf(9)libeth_xsk_tx_flush_bulk(9)libeth_xsktmo_req_csum(9)__libeth_xsk_xmit_fill_buf_md(9)__libeth_xsk_xmit_fill_buf(9)libeth_xsk_xmit_fill_buf(9)libeth_xsk_xmit_do_bulk(9)libeth_xsk_tx_init_bulk(9)libeth_xsk_process_buff(9)__libeth_xsk_run_prog(9)libeth_xsk_run_prog(9)__libeth_xsk_run_pass(9)libeth_xsk_run_pass(9)libeth_xsk_finalize_rx(9)LIBETH_XSK_DEFINE_FLUSH_TX(9)LIBETH_XSK_DEFINE_RUN_PROG(9)LIBETH_XSK_DEFINE_RUN_PASS(9)LIBETH_XSK_DEFINE_FINALIZE(9)struct libeth_xskfq(9)libeth_xsk_buff_xdp_get_dma(9)libeth_xskfqe_alloc(9)
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
- 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