xdp_return_frag(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

hii bestie πŸ’– welcome to the xdp_return_frag(9) page from the Kernel API Manual. This is the function that handles one XDP frag: it frees it, or it decrements its refcount. That's the whole assignment. ✨

πŸ’… NAME πŸ’…

xdp_return_frag β€” free one XDP frag or decrement its refcount

πŸŽ€ SYNOPSIS πŸŽ€

void xdp_return_frag (netmem_ref netmem , const struct xdp_buff *xdp );

🌸 ARGUMENTS 🌸

Okay so there are two args, and both matter, fr fr:

  • netmem β€” the network memory reference to release. this is the thing getting the release treatment 🫢
  • xdp β€” the xdp_buff to release the frag for. it's giving "pass the buff, handle the frag" πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./net/core/xdp.c is right there, and these pages are also in the group chat:


mwah πŸ’‹ this little page is brought to you by source/version ./net/core, dated October 2026, and it's still xdp_return_frag(9) β€” periodt. πŸ‘‘

πŸ“¦ where this page comes from