place_one(9)
π
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 π¦
- Kernel file
./tools/sched_ext/scx_qmap.bpf.cβcompute_partition(9),execute_partition(9)π
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms