DECLARE_IDTENTRY_ERRORCODE(9)
π NAME π
Ok so DECLARE_IDTENTRY_ERRORCODE(9) is from the Kernel API Manual, and it is literally here to declare functions for simple IDT entry points β specifically the ones where the Error code is pushed by hardware. β¨
β¨ SYNOPSIS β¨
DECLARE_IDTENTRY_ERRORCODE (vector , func );
π«Ά ARGUMENTS π«Ά
vectorβ the vector number (and yeah, it's ignored for C π)funcβ the function name of the entry point π«Ά
π DESCRIPTION π
This macro declares three functions, periodt:
- The ASM entry point:
asm_##funcπ₯ - The XEN PV trap entry point:
xen_##func(maybe unused) π§ - The C handler called from the ASM entry point π
It's the same as DECLARE_IDTENTRY, but the C-handler gets an extra error_code argument. That's the whole glow-up. π
π SEE ALSO π
Kernel file ./arch/x86/include/asm/idtentry.h β and the whole friend group is: DECLARE_IDTENTRY(9), DEFINE_IDTENTRY(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), DEFINE_IDTENTRY_DF(9), DECLARE_IDTENTRY_DF(9), DEFINE_IDTENTRY_DF(9). π
Signed, sealed, slayed: source/version is ./arch/x86/include/asm, date is October 2026, and the page is DECLARE_IDTENTRY_ERRORCODE(9). Bye bestie, go handle those error-code entries! π
π
π¦ 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