DEFINE_IDTENTRY_SYSVEC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

(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