place_one(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… place_one(9) πŸ’…

okay bestie, this is a page from the Kernel API Manual, and it's lowkey iconic: it's all about placing exactly one excl-held cid where it belongs. no cap. πŸŽ€


🌸 NAME 🌸

place_one β€” assign one excl-held cid to its owner πŸ’–

✨ SYNOPSIS ✨

__noinline int place_one (s32 cid , s32 n , s32 total_excl );

🫢 ARGUMENTS 🫢

  • cid β€” the excl-held cid to place πŸ’…
  • n β€” its position among the excl-held cids, in [0, nr_excl) ⭐
  • total_excl β€” how many positions are owned exclusively (the rest are shared) ✨

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the vibe, bestie: position n below total_excl is owned exclusively. it falls in the range whose cumulative end it is under, owned by cp_range_owner[]. πŸ‘‘

and a position at or above total_excl? that one is the rounding leftover which joins the shared pool. periodt. 🌈

also, this is a separate __noinline function to help verification. literally doing its little part for the cause. 🫢

πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole page, bestie πŸ’– source/version: ./tools/sched_ext, date: October 2026, page: place_one(9). slay and bye! πŸŽ€βœ¨

πŸ“¦ where this page comes from