DEFINE_IDTENTRY_ERRORCODE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:

πŸ’€ and yes, DECLARE_IDTENTRY_DF(9) and DEFINE_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