DEFINE_IDTE...YSVEC_SIMPLE(9)
π DEFINE_IDTE...YSVEC_SIMPLE(9) π
okay so we're deep in the Kernel API Manual bestie, and this one is literally the tiny little macro that makes your simple system vector IDT entries exist β¨ it's from ./arch/x86/include/asm and honestly? it's giving "small but mighty" π
πΈ NAME πΈ
DEFINE_IDTENTRY_SYSVEC_SIMPLE β the macro that emits code for simple system vector IDT entry points π¦ no cap, that's the whole vibe.
β¨ SYNOPSIS β¨
DEFINE_IDTENTRY_SYSVEC_SIMPLE (func );
π ARGUMENTS π
funcβ the function name of the entry point π like, that's the name you're handing over, that's the whole assignment bestie.
π₯ DESCRIPTION π₯
So here's the tea: this thing runs the function on the interrupted stack. No switch to the IRQ stack, and only the absolute minimal __irq_enter/exit handling β lowkey efficient, highkey iconic π
π¨ important warning bestie, do NOT skip this: only use it for 'empty' vectors like the reschedule IPI and the KVM posted interrupt vectors. That's it. That's the guest list. π
π¦ SEE ALSO π¦
Kernel file ./arch/x86/include/asm/idtentry.h β go read it, iykyk π
DECLARE_IDTENTRY(9)DEFINE_IDTENTRY(9)DECLARE_IDTENTRY_ERRORCODE(9)DEFINE_IDTENTRY_ERRORCODE(9)DECLARE_IDTENTRY_RAW(9)DEFINE_IDTENTRY_RAW(9)DEFINE_FREDENTRY_RAW(9)DECLARE_IDTENTRY_RAW_ERRORCODE(9)DEFINE_IDTENTRY_RAW_ERRORCODE(9)DECLARE_IDTENTRY_IRQ(9)DEFINE_IDTENTRY_IRQ(9)DECLARE_IDTENTRY_SYSVEC(9)DEFINE_IDTENTRY_SYSVEC(9)DECLARE_IDTENTRY_XENCB(9)DECLARE_IDTENTRY_IST(9)DECLARE_IDTENTRY_VC(9)DEFINE_IDTENTRY_IST(9)DEFINE_IDTENTRY_NOIST(9)DECLARE_IDTENTRY_DF(9)DEFINE_IDTENTRY_DF(9)DECLARE_IDTENTRY_DF(9)DEFINE_IDTENTRY_DF(9)
(yeah the last two show up twice, that's just how the og page rolls, we don't gatekeep π)
and that's the whole page, bestie π«Ά this little icon lives in ./arch/x86/include/asm and it's dated October 2026 β so like, future vibes, main character energy, slay π go forth and define your simple system vector IDT entry points responsibly πβ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms