ERR_CAST(9)
π 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
- 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