DEFINE_IDTENTRY_SYSVEC(9)
π DEFINE_IDTENTRY_SYSVEC(9) β a Kernel API Manual moment π
okay bestie, gather round, because this one is literally from the Kernel API Manual and it's giving "low-level x86 interrupt lore" and honestly? obsessed. π¦
β¨ NAME β¨
DEFINE_IDTENTRY_SYSVEC β the macro that emits code for system vector IDT entry points. no cap, that's the whole vibe. π
πΈ SYNOPSIS πΈ
DEFINE_IDTENTRY_SYSVEC (func );
π ARGUMENTS π
funcβ the function name of the entry point. that's it. that's the arg. main character energy, honestly. π
π₯ DESCRIPTION π₯
okay so here's the tea π β before the function body even gets to do its thing, irqentry_enter/exit and irq_enter/exit_rcu are invoked. like, they go first, periodt.
also, the KVM L1D flush request is set. yep. it's set. iconic behavior. π
and if the entry hit kernel mode, it runs the function on the interrupt stack. β¨ (that's the conditional, bestie β kernel mode hit = interrupt stack, iykyk.)
π SEE ALSO π
like, go read these too, fr fr β they're all in the kernel file ./arch/x86/include/asm/idtentry.h:
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_SIMPLE(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)
(yes, DECLARE_IDTENTRY_DF(9) and DEFINE_IDTENTRY_DF(9) show up twice in that list β that's exactly how the original rolls, so we're keeping it, don't come for me π)
π reminder bestie: this is kernel-internal macro territory, so the details above are the whole story β nothing extra, nothing invented. π«Ά
and that's a wrap, babe! this lil page lives under ./arch/x86/include/asm and it's dated October 2026, brought to you by the Kernel API Manual β slay, bye! ππ§ββοΈβ
π¦ 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