Preprocessor macro expanding to an expression
Space | User/kernel |
Context | Sync/async/rt-irq |
May block | No |
SPL | Any |
Dynamic memory | No |
#include <SYS/TYPES.H>
if (__IS_ERR(ptr)) ...
This macro tests if returned pointer was created with __ERR_PTR. It returns zero for any other pointer.
This macro returns a non-zero value if the pointer was obtained from __ERR_PTR. Otherwise it returnes zero.