PTR_ERR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ¦‹


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