DEFINE_IDTENTRY_DF(9)
π DEFINE_IDTENTRY_DF(9) π
okay so bestie, welcome to the Kernel API Manual corner of the group chat π. Today's main character is DEFINE_IDTENTRY_DF(9), and we're gonna get you comfy with it without skipping a single detail. periodt. β¨
β¨ NAME β¨
DEFINE_IDTENTRY_DF β literally "Emit code for double fault on 32bit" π«Ά. That's the whole vibe: it's the macro situation for emitting code for a double fault on 32bit. This macro ate and left no crumbs, no cap. π
π¦ SYNOPSIS π¦
the call looks like this, character for character π:
DEFINE_IDTENTRY_DF (func );
π ARGUMENTS π
funcβ the function name of the entry point. That's it. That's the argument. She's lowkey essential though β slay π.
π₯ DESCRIPTION π₯
okay so here's the tea: this is called through the doublefault shim β yes, that's its actual name β and that shim already provides cr2 in the address argument. So the shim is doing the pre-work, and DEFINE_IDTENTRY_DF is the macro that emits the code for the double fault on 32bit. It's giving iconic teamwork, fr fr β¨.
π SEE ALSO π
if you wanna fall down the rabbit hole, these are the besties and the kernel file to check out π :
- Kernel file:
./arch/x86/include/asm/idtentry.hβ that's the home base π 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)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)DECLARE_IDTENTRY_DF(9)β yes, it's listed twice in the original, so we're keeping both because details are sacred π
π cute sign-off: this page comes from the source/version situation ./arch/x86/include/asm, dated October 2026, and it's bringing you DEFINE_IDTENTRY_DF(9) energy. byeee πβ¨
π¦ 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