scx_bpf_put_cpumask(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… scx_bpf_put_cpumask(9) โ€” from the Kernel API Manual, bestie ๐Ÿซถ

okay so. you know how every getter in the kernel has a matching putter, right? this is the putter. it's the "okay i'm done with this cpumask now, you can have it back" function, and it lives in the Kernel API Manual section 9, which is where all the kernel-API kfuncs hang out. it's short, it's sweet, it's giving "one job and it does it" energy โœจ


๐ŸŽ€ NAME ๐ŸŽ€

scx_bpf_put_cpumask โ€” release a possible/online cpumask ๐Ÿ’–

like, literally just let it go. it's the release counterpart. the "return the rental car" moment. no cap ๐Ÿš—


โœจ SYNOPSIS โœจ

__bpf_kfunc void scx_bpf_put_cpumask (const struct cpumask *cpumask );

that's the whole thing. __bpf_kfunc void โ€” so it's a BPF kfunc, and it returns nothing, because there's nothing to return, because releasing things just happens ๐ŸŒธ


๐ŸŒˆ ARGUMENTS ๐ŸŒˆ

  • cpumask โ€” cpumask to release ๐Ÿฆ‹

that's it. that's the whole argument list. one pointer, one job. iconic honestly ๐Ÿ‘‘

๐Ÿ’€ tiny reminder bestie: this is the release side. whatever cpumask you're handing over here is one you got from the matching getter (scx_bpf_get_possible_cpumask(9) and scx_bpf_get_online_cpumask(9) are literally right there in SEE ALSO, iykyk). the page doesn't say anything else about ownership or lifetimes, so don't go inventing rules โ€” just pass the cpumask and let it go ๐Ÿ™ˆ

๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

okay this section ate. and by "ate" i mean there are like NINETY cross-references and i'm listing every single one because we don't skip. periodt ๐Ÿ’…

the kernel file is ./kernel/sched/ext/ext.c, and here's the whole friend group:

yeah. ninety of them. i counted so you don't have to ๐Ÿงฎโœจ read them, love them, they're all (9) section pages ๐Ÿซถ


and that's the whole page bestie!! it's short because the function is short, and honestly? respect. sometimes a function is just "release the cpumask" and that's its entire personality ๐Ÿ’œ

sign-off time ๐ŸŽ€ this lil beauty lives in the ./kernel/sched/ext corner of the tree, and it's dated October 2026 (yes, the future, don't ask, we don't question the calendar here ๐Ÿฆ‹). go forth and release your cpumasks responsibly. mwah ๐Ÿ’‹๐ŸŒธ

๐Ÿ“ฆ where this page comes from