__napi_build_skb(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to the Kernel API Manual entry for __napi_build_skb(9) β€” she's here to build a network buffer, and honestly? iconic. no cap πŸ’…


✨ SYNOPSIS ✨

struct sk_buff * __napi_build_skb (void *data , unsigned int frag_size
);

πŸŽ€ ARGUMENTS πŸŽ€

  • data β€” the data buffer provided by caller 🫢
  • frag_size β€” size of data. periodt.

🌸 DESCRIPTION 🌸

okay so this is the version of __build_skb that uses NAPI percpu caches to obtain skbuff_head instead of inplace allocation. it's giving β€œI have a cache and I know how to use it” energy, but for real that's the actual difference ✨

On success it returns a new sk_buff; on allocation failure it returns NULL 😭. that's the vibe check.

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./net/core/skbuff.c is the home base, and the full bestie roster is:


πŸ’‹ mwah! this page is from the ./net/core source/version, dated October 2026, for __napi_build_skb(9). that's the tea, bestie 🫢

πŸ“¦ where this page comes from