blkg_alloc(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– blkg_alloc(9) πŸ’–

okay bestie, welcome to the blkg_alloc(9) page from the Kernel API Manual β€” this is the group chat where we learn how to allocate a blkg without losing our minds 🫢✨


πŸŽ€ NAME πŸŽ€

blkg_alloc β€” allocate a blkg. no cap, that's literally the name πŸ’…

✨ SYNOPSIS ✨

struct blkcg_gq * blkg_alloc (struct blkcg *blkcg , struct gendisk *disk
, gfp_t gfp_mask );

πŸ’… ARGUMENTS πŸ’…

  • blkcg β€” block cgroup the new blkg is associated with 🫢
  • disk β€” gendisk the new blkg is associated with 🌈
  • gfp_mask β€” allocation mask to use ✨

🌸 DESCRIPTION 🌸

okay so this function allocates a new blkg, and it associates blkcg and disk with it πŸ’– that's the whole vibe. lowkey iconic, highkey useful.

πŸ¦‹ SEE ALSO πŸ¦‹

kernel file: ./block/blk-cgroup.c β€” yes, that's where the magic lives, bestie 🧚


cute sign-off time: source/version is ./block, date is October 2026 β€” mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from