libeth_xskfqe_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay bestie, this is libeth_xskfqe_alloc(9) from the Kernel API Manual, and its whole personality is: allocate @n XSk Rx buffers. slay. That's the name section, short and iconic.

✨ SYNOPSIS ✨

The signature at a glance, no cap:

u32 libeth_xskfqe_alloc (struct libeth_xskfq_fp *fq , u32 n , void
       (*fill)(const struct libeth_xskfq_fp *fq, u32 i) );

πŸŽ€ ARGUMENTS πŸŽ€

  • fq β€” hotpath part of the XSkFQ, usually onstack.
  • n β€” number of buffers to allocate.
  • fill β€” driver callback to write DMA addresses to HW descriptors.

πŸ’… DESCRIPTION πŸ’…

Heads up, bestie: note that fq->ntu gets updated, but ::pending must be recalculated by the caller. The way that matters: the function updates fq->ntu, but it does not recalc ::pending for you β€” the caller has to do that. periodt.

πŸ”₯ RETURN πŸ”₯

Returns the number of buffers refilled. That's the return value, and it's giving exactly that.

🌈 SEE ALSO 🌈

Kernel file ./include/net/libeth/xsk.h, plus the whole friend group:

cute sign-off: source is ./include/net/libeth, date is October 2026, and the page/version is libeth_xskfqe_alloc(9). mwah πŸ’‹

πŸ“¦ where this page comes from