DEFINE_IDTENTRY_ERRORCODE(9)
π DEFINE_IDTENTRY_ERRORCODE(9) π
okay bestie, welcome to the Kernel API Manual β this one's a macro from the x86 IDT entry-point cinematic universe and honestly it's giving β¨niche but essentialβ¨
πΈ NAME πΈ
DEFINE_IDTENTRY_ERRORCODE β literally emits code for simple IDT entry points, the kind where the error code gets pushed by hardware π«Ά
β¨ SYNOPSIS β¨
DEFINE_IDTENTRY_ERRORCODE (func );
π ARGUMENTS π
funcβ the function name of the entry point, i.e. what you're gonna call this bad boy π
π¦ DESCRIPTION π¦
no cap, it's the same as DEFINE_IDTENTRY, except it has an extra error_code argument. that's it. that's the whole vibe. the hardware already pushed the error code for you, so this macro's whole personality is making room for it π
π SEE ALSO π
the kernel file ./arch/x86/include/asm/idtentry.h and honestly the entire friend group:
DECLARE_IDTENTRY(9)DEFINE_IDTENTRY(9)DECLARE_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)
π and yes,DECLARE_IDTENTRY_DF(9)andDEFINE_IDTENTRY_DF(9)are listed twice at the end. not me fixing it, not me judging it β I'm just reporting what the page says, periodt. π
and that's the whole page, bestie β go forth and define your error-code entry points π
π sign-off szn π β this icon lives in ./arch/x86/include/asm, dated October 2026, and answers to DEFINE_IDTENTRY_ERRORCODE(9) ππ¦
π¦ 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