ERR_CAST(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ERR_CAST(9) β€” Kernel API Manual, bestie edition ✨

okay so welcome to ERR_CAST(9) from the Kernel API Manual. It's short, it's sweet, and it has serious main character energy: explicit casting of an error-valued pointer to another pointer type. No cap. 🫢


πŸ“› NAME

ERR_CAST β€” Explicitly cast an error-valued pointer to another pointer type. That's the whole assignment, bestie. Periodt. 🌸

✨ SYNOPSIS

void * ERR_CAST (__force const void *ptr );

πŸŽ€ ARGUMENTS

  • ptr β€” the pointer to cast. Literally that. Nothing extra. πŸ’…

πŸ’– DESCRIPTION

Explicitly cast an error-valued pointer to another pointer type in such a way as to make it clear that's what's going on. It's giving β€œyes, this cast is on purpose, bestie” β€” and honestly? Obsessed with the clarity. ✨

πŸ‘€ SEE ALSO

  • Kernel file ./tools/include/linux/err.h β€” go peek, iykyk. πŸ¦‹

vibe check: short page, explicit cast, no cap. πŸ’–

made with πŸ’– from ./tools/include/linux Β· October 2026 Β· ERR_CAST(9) ✨🧚

πŸ“¦ where this page comes from