DECLARE_IDTENTRY_ERRORCODE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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