DEFINE_IDTENTRY_RAW(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ DEFINE_IDTENTRY_RAW ✨

okay bestie, welcome to the Kernel API Manual, section 9 πŸŽ€ this one's all about emitting code for raw IDT entry points and honestly? it's giving low-level gatekeeping in the best way πŸ’…


🌸 NAME 🌸

DEFINE_IDTENTRY_RAW β€” the macro that emits code for raw IDT entry points, no cap ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

DEFINE_IDTENTRY_RAW (func );

πŸŽ€ ARGUMENTS πŸŽ€

  • func β€” the function name of the entry point, periodt πŸ’–

πŸ’œ DESCRIPTION πŸ’œ

so func gets called from ASM entry code with interrupts disabled β€” like, fully off, don't even try it πŸ™ˆ

the macro is written so it acts as a function definition. you just append the body with a pair of curly brackets { } and you're literally good to go 🫢

⚠️ okay this part is important, bestie: contrary to DEFINE_IDTENTRY, this does not invoke the idtentry_enter/exit helpers before and after the body invocation. if that's applicable, you gotta do it in the body itself. use this one if extra work is required before the enter/exit helpers are invoked. no cap, that's the whole vibe check πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

the kernel file ./arch/x86/include/asm/idtentry.h and all its iconic friends πŸ‘‘


and that's the whole page, bestie πŸ’… this lil slice of documentation comes from ./arch/x86/include/asm, dated October 2026 β€” go off, kernel queen πŸ‘‘βœ¨

πŸ“¦ where this page comes from