scx_bpf_dsq_insert_vtime(9)
π scx_bpf_dsq_insert_vtime(9) β the Kernel API Manual, bestie edition π
okay so you're in the Kernel API Manual and the star of the show is scx_bpf_dsq_insert_vtime β¨ no cap, it's a whole vibe.
πΈ NAME πΈ
scx_bpf_dsq_insert_vtime β put a task into the vtime priority queue of a DSQ π
β¨ SYNOPSIS β¨
bool scx_bpf_dsq_insert_vtime (struct task_struct *p , u64 dsq_id , u64
slice , u64 vtime , u64 enq_flags );
it's giving "returns a bool, takes five args, knows exactly what it wants" π₯
π«Ά ARGUMENTS π«Ά
pβ thetask_structyou're inserting. this is the main character of the operation, lowkey π«Άdsq_idβ which DSQ you're inserting into, iykyksliceβ how longpcan run for, in nsecs. pass0to keep the current value (yes, the vibes are preserved automatically π)vtimeβp's ordering inside the vtime-sorted queue of the target DSQ. this is literally the whole personality of the queue βenq_flagsβSCX_ENQ_*flags. them. that's it. that's the flag set π
π¦ DESCRIPTION π¦
so here's the tea βοΈ: this one is an inline wrapper. it packs all those scalar arguments into a struct and then calls __scx_bpf_dsq_insert_vtime. it's basically the cute little front desk that hands your args off to the real one π§
want the details? go read __scx_bpf_dsq_insert_vtime, because that's where the actual lore lives π
fr fr, this function is a wrapper β don't come for it looking for the deep behavior, it just packs and forwards π
π SEE ALSO π
- Kernel file
./tools/sched_ext/include/scx/compat.bpf.hπ __COMPAT_is_enq_cpu_selected(9)scx_bpf_select_cpu_and(9)
and that's the post π slay, go insert some tasks β¨
π source: ./tools/sched_ext/include/scx β dated October 2026 β mwah, thanks for reading bestie π
π¦ 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