scx_bpf_destroy_dsq(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… scx_bpf_destroy_dsq(9) πŸ’…

okay bestie, welcome to the Kernel API Manual entry for scx_bpf_destroy_dsq(9) β€” title AND manual name folded in, we’re being efficient πŸ’–


🌸 NAME 🌸

scx_bpf_destroy_dsq β€” Destroy a custom DSQ ✨

πŸŽ€ SYNOPSIS πŸŽ€

the signature, verbatim, no edits, no vibes-only shorthand:

__bpf_kfunc void scx_bpf_destroy_dsq (u64 dsq_id , const struct
       bpf_prog_aux *aux );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • dsq_id β€” the DSQ to destroy πŸ’…
  • aux β€” the implicit BPF argument that gives access to bpf_prog_aux, hidden from BPF progs πŸ‘€

πŸ”₯ DESCRIPTION πŸ”₯

Okay so scx_bpf_destroy_dsq is the kfunc that destroys the custom DSQ identified by dsq_id. It’s giving cleanup era, but only for DSQs that were created with scx_bpf_create_dsq β€” those are the only ones you can destroy, periodt.

⚠️ Big warning energy: the caller must ensure that the DSQ is empty and that no further tasks are dispatched to it. You cannot just yolo a destroy while tasks are still sliding in β€” that is not the vibe, bestie 😭

If you call it on a DSQ which doesn’t exist, it’s ignored β€” no dramatic error moment, just ignored. And yes, it can be called from any online scx_ops operations. Slay πŸ’–

πŸ‘€ SEE ALSO πŸ‘€

Kernel file ./kernel/sched/ext/ext.c, plus the whole linked-reference friend group:

xoxo, your local scx_bpf_destroy_dsq(9) hype girl πŸ’– β€” source/version: ./kernel/sched/ext, date: October 2026. Byeee 🫢

πŸ“¦ where this page comes from