xsk_tx_metadata_to_compl(9)
β¨ xsk_tx_metadata_to_compl(9) β¨
okay so this is a page from the Kernel API Manual and honestly it's a little gem β it's all about stashing the right metadata so your TX completion can slay later. like a lil time capsule for your packets π
π NAME π
xsk_tx_metadata_to_compl β save enough relevant metadata information to perform tx completion in the future.
no cap, that's the whole vibe: future-you needs receipts, this function gets you the receipts π
π¦ SYNOPSIS π¦
void xsk_tx_metadata_to_compl (struct xsk_tx_metadata *meta , struct
xsk_tx_metadata_compl *compl );
two pointers in, nothing out (it's void, bestie β it's giving silent but powerful) β¨
πΈ ARGUMENTS πΈ
metaβ pointer to AF_XDP metadata areacomplβ pointer to outputstruct xsk_tx_metadata_to_compl
that's it. two pointers. iconic. π«Ά
π« DESCRIPTION π«
so this function should be called by the networking device when it prepares an AF_XDP egress packet. the value of compl should be stored and passed to xsk_tx_metadata_complete upon TX completion.
literally that's the whole plot: take the metadata, squish the relevant bits into compl, hang onto it, and hand it back over to xsk_tx_metadata_complete when the TX is done. don't lose it, bestie β it's the whole point π
fr fr: the whole deal is that compl gets stored now and used later at completion time. that's the contract, no cap.
π₯ SEE ALSO π₯
- Kernel file
./include/net/xdp_sock.h xsk_tx_metadata_complete(9)
okay that's the page!! go forth and complete your TXes responsibly π
β cute lil sign-off: this one lives in ./include/net, dated October 2026 β so like, mark your calendar bestie πβ¨π
π¦ 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