netdev_alloc_frag(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… netdev_alloc_frag(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so real talk, this one's from the Kernel API Manual and it's honestly so short and sweet, like a little snack. let's get into it πŸ¦‹


✨ NAME ✨

netdev_alloc_frag β€” the function that allocates a page fragment. that's it. that's the whole vibe. πŸ’–


🌸 SYNOPSIS 🌸

void * netdev_alloc_frag (unsigned int fragsz );

look at her go. returns a void *, takes one unsigned int. iconic signature, no notes ✨


🫢 ARGUMENTS 🫢

  • fragsz β€” the fragment size, bestie. that's the number you're passing in. it's literally just how big the frag is πŸ’…

πŸ‘‘ DESCRIPTION πŸ‘‘

so what does she do? she allocates a frag from a page, for a receive buffer. that's the whole job πŸŽ€

and the important detail, no cap: it uses GFP_ATOMIC allocations. so yeah, that's the memory-allocation context it's rolling with πŸ”₯


🌈 SEE ALSO 🌈

bestie. buckle up. this list is long β€” like, main-character-length. but every single one of these is a real one, so here we go πŸ’€

the kernel file is ./include/linux/skbuff.h, and it points you at:

like, she knows everyone at the party, fr fr πŸ’€βœ¨


that's the whole page bestie, short and slay πŸ’… this one lives in ./include/linux and the version stamp says October 2026 β€” so like, from the future, obsessed πŸ¦‹πŸ‘‘ catch you in the next manpage, mwah πŸŽ€

πŸ“¦ where this page comes from