scx_bpf_dsq_move_set_slice(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… scx_bpf_dsq_move_set_slice β€” NAME, but make it cute πŸ’…

okay so bestie, welcome to the Kernel API Manual page for scx_bpf_dsq_move_set_slice β€” aka "Override slice when moving between DSQs". that's the whole name line, we're not gonna be weird about it, we're just gonna read the whole thing together. grab a snack πŸ“


✨ SYNOPSIS ✨

__bpf_kfunc void scx_bpf_dsq_move_set_slice (struct bpf_iter_scx_dsq
*it__iter , u64 slice );

like, that's the whole signature. __bpf_kfunc void, two args, we move. no cap 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • it__iter β€” the DSQ iterator that's currently in progress. it's mid-walk, it's doing its thing, main character energy 🌟
  • slice β€” how long the moved task gets to run for, measured in nsecs. yes, nanoseconds. she's precise πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

so what this does: it overrides the slice of the next task that's gonna get moved out of it__iter by scx_bpf_dsq_move[_vtime]().

lowkey the important bit: if you don't call this function, the previous slice duration is kept. that's it. that's the rule. no sneaky default, no surprise reset β€” the old slice just carries over, periodt ✨

fr fr, this only sets up the slice for the next move. don't @ me if you expected it to do something wider, it's literally just the next one πŸ’€

🌈 SEE ALSO 🌈

bestie there are so many of these and i'm not skipping a single one, we respect the cross-reference list in this house πŸ‘‘


🌸 the cute sign-off 🌸

this little icon came from the ./kernel/sched/ext source, dated October 2026, and it's filed under the name scx_bpf_dsq_move_set_slice(9) β€” go forth and set those slices, bestie πŸ’–πŸ§šβ€β™€οΈβ­

πŸ“¦ where this page comes from