DECLARE_IDTE...AW_ERRORCODE(9)
π DECLARE_IDTENTRY_RAW_ERRORCODE β like, the whole vibe
okay so bestie, welcome to the DECLARE_IDTENTRY_RAW_ERRORCODE(9) page from the Kernel API Manual. yes that's a lot of capital letters, no I will not be apologizing. this is the x86 IDT entry point lore and it's honestly kind of iconic once you get it π
β¨ NAME β¨
DECLARE_IDTENTRY_RAW_ERRORCODE β Declare functions for raw IDT entry points Error code pushed by hardware
like, that's the whole thing. it declares functions. for raw IDT entry points. and the error code is pushed by the hardware, not by you, so don't come for it π
π¦ SYNOPSIS π¦
DECLARE_IDTENTRY_RAW_ERRORCODE (vector , func );
that's it. two things in, macro does its thing. slay.
πΈ ARGUMENTS πΈ
vectorβ Vector number (ignored for C). yeah bestie, it just gets ignored in C. not me showing up to the function call and being told I'm not needed πfuncβ Function name of the entry point. this one actually matters, it's the name your entry point function gets, so pick a good one π«Ά
π DESCRIPTION π
so what does it actually do? it maps to DECLARE_IDTENTRY_ERRORCODE. that's the whole description. it's giving "short and mysterious main character energy" and honestly? we respect it π
π₯ SEE ALSO π₯
the receipts live in the kernel file ./arch/x86/include/asm/idtentry.h, and here's the full friend group β every single one, no cap:
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)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)
(yes, DECLARE_IDTENTRY_DF(9) and DEFINE_IDTENTRY_DF(9) are both in there twice. we're keeping them. periodt. π)
and that's the page, bestie!! π§ go forth and declare your raw error-code entry points, you absolute icon πβ
source file: ./arch/x86/include/asm Β· dated October 2026 Β· and yes that's DECLARE_IDTE...AW_ERRORCODE(9) in the footer because the terminal truncates it and we love that for it π
π¦ 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