scx_bpf_dsq_insert_vtime(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the task_struct you're inserting. this is the main character of the operation, lowkey 🫢
  • dsq_id β€” which DSQ you're inserting into, iykyk
  • slice β€” how long p can run for, in nsecs. pass 0 to 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 πŸ‘‘


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