bpf_iter_scx_dsq_destroy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… bpf_iter_scx_dsq_destroy(9) β€” from the Kernel API Manual ✨

okay so bestie, welcome to the little page that does the cleanup β€” the "and we're done here" of the DSQ iterator world πŸŽ€


🌸 NAME 🌸

bpf_iter_scx_dsq_destroy β€” literally just destroys a DSQ iterator. that's it. that's the whole job. and honestly? iconic πŸ’…


✨ SYNOPSIS ✨

__bpf_kfunc void bpf_iter_scx_dsq_destroy (struct bpf_iter_scx_dsq *it
);

so it returns void (nothing, nada, we don't do receipts here 🫢) and it takes exactly one thing: a pointer to a struct bpf_iter_scx_dsq. periodt.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • it β€” the iterator you want to destroy πŸ’€ that's the one. the only one. hand it over.

πŸ’– DESCRIPTION πŸ’–

it undoes bpf_iter_scx_dsq_new. that's the whole description in the original and ngl it's giving "terse queen" energy πŸ‘‘

so like β€” you called bpf_iter_scx_dsq_new at some point to spin up an iterator, and now you're done with it, so you call this to undo that. new one in, destroy it after. clean up after yourself bestie, it's main character behavior 🌈


πŸ”₯ SEE ALSO πŸ”₯

okay this section is long and i am obsessed with it. the source of all this lore is the kernel file ./kernel/sched/ext/ext.c, and it wants you to also go read all of these ✨ (yes, all 90 of them, i counted, don't @ me):

like, that's a whole reading list. study up queen πŸ“šπŸ‘‘

ngl the whole page is basically three lines of actual content and then a wall of friends. but that's fine, that's the vibe, and every single one of them is here 🫢

and that's the tea πŸ“ this lil page lives in ./kernel/sched/ext and it's dated October 2026 β€” so mark your calendar bestie, the destroy-iterator era is upon us πŸ’œβœ¨ ily, go clean up your iterators πŸŽ€

πŸ“¦ where this page comes from