IS_ERR_OR_NULL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

okay so bestie, this is IS_ERR_OR_NULL from the Kernel API Manual, and its whole job is to detect an error pointer or a null pointer. that's the assignment, and it ate πŸ’…

✨ SYNOPSIS ✨

the signature is literally:

bool IS_ERR_OR_NULL (__force const void *ptr );

πŸŽ€ ARGUMENTS πŸŽ€

  • ptr β€” the pointer to check. yes queen, that's the one 🫢

πŸ’– DESCRIPTION πŸ’–

It's giving IS_ERR, but it also returns true for a null pointer. so it's the "error pointer or null pointer" vibe check, periodt ✨

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./include/linux/err.h β€” and the whole linked-up squad:

okay bye bestie 🫢 this page is from ./include/linux, dated October 2026, and it's IS_ERR_OR_NULL(9) πŸ’–πŸ’…

πŸ“¦ where this page comes from