scx_bpf_task_set_dsq_vtime(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐Ÿ’… scx_bpf_task_set_dsq_vtime(9) โœจ

okay bestie, welcome to the Kernel API Manual โ€” this is the page for scx_bpf_task_set_dsq_vtime, and it's genuinely not that deep, but the details matter so let's go ๐Ÿซถ


๐ŸŒธ NAME ๐ŸŒธ

scx_bpf_task_set_dsq_vtime โ€” set a task's virtual time for DSQ ordering, no cap ๐Ÿ’ซ


โœจ SYNOPSIS โœจ

__bpf_kfunc bool scx_bpf_task_set_dsq_vtime (struct task_struct *p , u64
vtime , const struct bpf_prog_aux *aux );

๐ŸŽ€ ARGUMENTS ๐ŸŽ€

  • p โ€” the task of interest. yes, that task. the main character ๐Ÿ‘‘
  • vtime โ€” the virtual time you wanna set it to. that's the number, bestie ๐Ÿงฎ
  • aux โ€” the implicit BPF argument that gives you access to bpf_prog_aux, and it's hidden from BPF progs ๐Ÿ™ˆ so likeโ€ฆ it's there, you just don't get to see it. vibes.

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

So what does it actually do? It sets p's virtual time to vtime. That's it. That's the whole thing ๐Ÿ’…

It returns true on success, and false if the calling scheduler doesn't have authority over p โ€” like, it's not your task to mess with, stay in your lane literally ๐Ÿ˜ญ


๐ŸŒˆ SEE ALSO ๐ŸŒˆ

Kernel file ./kernel/sched/ext/ext.c, plus the whole friend group of related pages โ€” and when I say whole friend group, I mean it. grab a snack, this is a long list ๐Ÿ“:

like I said. whole friend group. ate and left no crumbs ๐Ÿ”ฅ


and that's the page, bestie!! ๐Ÿงš this lil slice of the Kernel API Manual lives in ./kernel/sched/ext, dated October 2026, and the page itself is scx_bpf_task_set_dsq_vtime(9) โ€” periodt ๐Ÿ’œ go set some virtual times, you got this ๐ŸŽ€

๐Ÿ“ฆ where this page comes from