IS_ERR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… IS_ERR (section 9, Kernel API Manual)

okay bestie, gather round, because this one is short but it is load-bearing 🫢

✨ NAME ✨

IS_ERR β€” the little macro that tells you whether a pointer is actually an error pointer. That's it. That's the whole job. And she does it flawlessly. πŸ‘‘

🌸 SYNOPSIS 🌸

bool IS_ERR (__force const void *ptr );

like yes, that's genuinely all the syntax. no extra args, no funny business, just vibes and a bool. ✨

πŸŽ€ ARGUMENTS πŸŽ€

  • ptr β€” the pointer you want to check. the one you're side-eyeing. the one you're not sure about. hand her over and let IS_ERR do the vibe check. πŸ™ˆ

⭐ RETURN ⭐

  • true β€” if ptr is an error pointer. she's an error, girlie. 😭
  • false β€” otherwise. she's fine. false alarm. carry on. πŸ’–
no cap, this is a two-outcome situation and both outcomes are literally in the docs, so don't go expecting a third one. that's the whole return story. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

like, the whole error-pointer friend group πŸ’œ go read them, they're all serving their own purpose and they all ate. πŸ”₯


and that's the page, bestie β€” straight from ./include/linux, dated October 2026, living under the IS_ERR(9) name in the Kernel API Manual. mwah πŸ’…πŸŽ€πŸŒˆ

πŸ“¦ where this page comes from