dsq_insert_head(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– dsq_insert_head(9) πŸ’–

okay bestie, welcome to the dsq_insert_head(9) page from the Kernel API Manual ✨ this one is short, iconic, and lowkey all about a FIFO head insert that respects %SCX_TASK_PROTECTED πŸ’…


🌸 NAME 🌸

dsq_insert_head β€” FIFO head insertion honoring %SCX_TASK_PROTECTED

✨ SYNOPSIS ✨

no cap, the signature is exactly this:

bool dsq_insert_head (struct scx_dispatch_q *dsq , struct task_struct *p
);

πŸŽ€ ARGUMENTS πŸŽ€

  • dsq β€” the DSQ to insert into 🫢
  • p β€” the task being inserted πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

A HEAD insert should land behind any leading protected tasks. So yeah, if there are protected tasks leading the DSQ, your head insert slides in behind them β€” that's the whole %SCX_TASK_PROTECTED vibe check πŸ’…

A return of true indicates whether p became the first entry. periodt πŸ’–

🌈 SEE ALSO 🌈

Kernel file ./kernel/sched/ext/ext.c, plus the whole squad:


signed off from ./kernel/sched/ext, dated October 2026, and the footer still says dsq_insert_head(9) β€” bye bestie, go slay your scheduling πŸ’…βœ¨

πŸ“¦ where this page comes from