PTR_ERR(9)
π PTR_ERR(9) β Kernel API Manual, bestie! π
okay so this page is PTR_ERR from the Kernel API Manual, and it's literally about extracting the error code from an error pointer. no cap. π«Ά
β¨ NAME β¨
PTR_ERR β extract the error code from an error pointer. that's the whole vibe. π
πΈ SYNOPSIS πΈ
long PTR_ERR (__force const void *ptr );
π ARGUMENTS π
ptrβ an error pointer. that's it. that's the argument. π
π₯ RETURN π₯
the error code within ptr. yep, it's giving βinspect the pointer, hand back the code.β β¨
π¦ SEE ALSO π¦
- Kernel file
./include/linux/err.h:IS_ERR_VALUE(9),ERR_PTR(9),INIT_ERR_PTR(9),IS_ERR(9),IS_ERR_OR_NULL(9),ERR_CAST(9),PTR_ERR_OR_ZERO(9)β the whole error-pointer friend group. iykyk π
cute sign-off: source/version is ./include/linux, date is October 2026, and the page is PTR_ERR(9). mwah πβ¨
π¦ 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