__alloc_objs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

Okay so this is __alloc_objs(9) from the Kernel API Manual, and the official NAME line is literally:

__alloc_objs - Allocate objects of a given type using

That's the whole line, bestie β€” no cap, it ends right there at β€œusing.” We're not adding words to it, we're just quoting the lore. πŸ’…


✨ SYNOPSIS ✨

__alloc_objs (KMALLOC , GFP , TYPE , COUNT );

The way this is giving β€œfour things go in, objects come out” energy. πŸ¦‹


πŸŽ€ ARGUMENTS πŸŽ€

  • KMALLOC β€” which size-based kmalloc wrapper to allocate with. That's the wrapper you're picking, periodt.
  • GFP β€” the GFP flags for the allocation. Flags flags flags πŸ’–
  • TYPE β€” the type to allocate space for.
  • COUNT β€” how many TYPE objects to allocate. Yes, bestie, it's a count. 🧚

πŸ’œ RETURN πŸ’œ

You get a newly allocated pointer to the (first) TYPE of COUNT-many allocated TYPE objects. If it fails, you get NULL. That's the whole vibe check. πŸ”₯


🌈 SEE ALSO 🌈

The kernel file ./include/linux/slab.h is in the mix, and these are the references, all iconic, all present:


That's the whole page, bestie 🫢 β€” this was __alloc_objs(9) from the Kernel API Manual, source/version ./include/linux, dated October 2026. Bye πŸ’–

πŸ“¦ where this page comes from