libeth_xsk_buff_add_frag(9)
π libeth_xsk_buff_add_frag(9) π
okay bestie, welcome to the Kernel API Manual page for libeth_xsk_buff_add_frag(9) β yes that's the whole title, we're not abbreviating, we're not hiding the lore π«Ά
β¨ NAME β¨
libeth_xsk_buff_add_frag β literally just adding a frag to an XSk Rx buffer, that's the whole vibe π
πΈ SYNOPSIS πΈ
struct libeth_xdp_buff * libeth_xsk_buff_add_frag (struct
libeth_xdp_buff *head , struct libeth_xdp_buff *xdp );
like, look at that signature. iconic. no notes π₯
π¦ ARGUMENTS π¦
headβ the head buffer, the main character of this whole operation πxdpβ the frag buffer, the little sidekick getting attached β¨
π DESCRIPTION π
okay so listen β this is an external helper used by libeth_xsk_process_buff, and the assignment said do not call directly. like please, respect the boundary π
and ngl the important part: it frees both the main and frag buffers on error. both of them. so if something goes sideways, nothing's leaking, it's handled π periodt.
β RETURN β
- on success you get the main buffer with the frag attached β slay π
- on error you get
NULL, which happens when there's no space for a new frag π fr fr that's the one condition
π SEE ALSO π
the kernel file lives right here, go read it bestie:
./drivers/net/ethernet/intel/libeth/xsk.c
and the whole friend group of related pages:
libeth_xsk_buff_free_slow(9)libeth_xsk_buff_stats_frags(9)__libeth_xsk_run_prog_slow(9)libeth_xsk_prog_exception(9)libeth_xskfq_create(9)libeth_xskfq_destroy(9)libeth_xsk_init_wakeup(9)libeth_xsk_wakeup(9)libeth_xsk_setup_pool(9)
lowkey a warning tho: again, this one's an external helper for libeth_xsk_process_buff β do not call directly π it does its own buffer cleanup on error and you don't wanna find out the hard way π₯
k that's the page!! sourced from ./drivers/net/ethernet/intel/l..., dated October 2026, and filed under libeth_xsk_buff_add_frag(9) β mwah, go forth and don't call it directly ππ§π
π¦ 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