DEFINE_IDTENTRY_RAW(9)
β¨ 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 toDEFINE_IDTENTRY, this does not invoke theidtentry_enter/exithelpers 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 π
DECLARE_IDTENTRY(9)DEFINE_IDTENTRY(9)DECLARE_IDTENTRY_ERRORCODE(9)DEFINE_IDTENTRY_ERRORCODE(9)DECLARE_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)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)
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
- 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