libeth_xdp_load_stash(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… libeth_xdp_load_stash(9) โ€” Kernel API Manual, bestie edition ๐ŸŽ€

okay so you're looking at libeth_xdp_load_stash from the kernel API manual and honestly? it's a little niche, a little mysterious, and very much an "iykyk" situation. let's get into it โœจ


๐Ÿฆ‹ NAME ๐Ÿฆ‹

libeth_xdp_load_stash โ€” the glow-up where we recreate an &xdp_buff from a libeth_xdp buffer stash ๐Ÿ’–

like, the stash had a whole makeover era and now it's coming back as a real buff. main character energy fr.


โœจ SYNOPSIS โœจ

void libeth_xdp_load_stash (struct libeth_xdp_buff *dst , const struct
libeth_xdp_buff_stash *src );

no cap, that's the whole signature. two pointers, one void, zero drama. ๐ŸŒธ


๐ŸŽ€ ARGUMENTS ๐ŸŽ€

  • dst โ€” the target libeth_xdp_buff you're initializing. this is the one getting the fitting room treatment, bestie ๐Ÿ’…
  • src โ€” the source stash. this is where the vibes (and the data) are coming from ๐Ÿซถ

๐Ÿ’€ DESCRIPTION ๐Ÿ’€

okay so important heads up first: this is an external helper used by libeth_xdp_init_buff, and you should not call it directly. it's giving backstage-pass-only, not general admission ๐Ÿ™ˆ

what it actually does: it recreates an onstack libeth_xdp_buff using the stash that got saved earlier. so like, the stash was the save file and this function is the "continue game" button. iconic ๐ŸŽฎโœจ

the only field left untouched is rxq, and that's because it gets initialized later, inside that function we mentioned a second ago (libeth_xdp_init_buff). so it's not forgotten, it's just on its own schedule, living its truth ๐Ÿฆ‹


๐ŸŒˆ SEE ALSO ๐ŸŒˆ

the actual kernel file lives here, for the curious girlies:

  • Kernel file ./drivers/net/ethernet/intel/libeth/xdp.c

and the whole friend group of related functions (all sections (9), all absolutely invited to the group chat):


and that's the whole page, babe ๐Ÿ’œ this one came from ./drivers/net/ethernet/intel/l... and it's dated October 2026 โ€” so mark your calendars, screenshot the footer, and go forth and not call this helper directly ๐Ÿงšโœจ

๐Ÿ“ฆ where this page comes from