skb_page_frag_refill(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME

okay so bestie, this page is skb_page_frag_refill(9) from the Kernel API Manual, and it's literally about checking that a page_frag contains enough room. That's the whole vibe. ✨


✨ SYNOPSIS

bool skb_page_frag_refill (unsigned int sz , struct page_frag *pfrag ,
       gfp_t gfp );

🌸 ARGUMENTS

  • sz β€” the minimum size of the fragment we want to get. like, the smallest amount of room you're asking for, bestie πŸŽ€
  • pfrag β€” pointer to page_frag. yes, it's giving pointer energy πŸ’…
  • gfp β€” priority for memory allocation. the allocation priorities, not a gossip priority, but honestly both matter 🌈

πŸŽ€ NOTE

okay so important note, no cap: while this allocator tries to use high order pages, there is no guarantee that allocations succeed. 😭 therefore, sz MUST be less or equal than PAGE_SIZE. periodt. πŸ’€

πŸ¦‹ SEE ALSO

the kernel file ./net/core/sock.c is in the group chat, and the whole squad is: sk_ns_capable(9), sk_capable(9), sk_net_capable(9), sk_set_memalloc(9), sk_alloc(9), sk_clone(9), sk_wait_data(9), __sk_mem_raise_allocated(9), __sk_mem_schedule(9), __sk_mem_reduce_allocated(9), __sk_mem_reclaim(9). iykyk 🫢


sign-off time, bestie: this little icon comes from ./net/core, dated October 2026, and it's still skb_page_frag_refill(9) β€” slay, bye πŸ’…πŸ’–

πŸ“¦ where this page comes from