Interface __IS_ERR

Preprocessor macro expanding to an expression

SpaceUser/kernel
ContextSync/async/rt-irq
May blockNo
SPLAny
Dynamic memoryNo

#include <SYS/TYPES.H>

if (__IS_ERR(ptr)) ...

Description

This macro tests if returned pointer was created with __ERR_PTR. It returns zero for any other pointer.

Arguments

Returns

This macro returns a non-zero value if the pointer was obtained from __ERR_PTR. Otherwise it returnes zero.

See also

__ERR_PTR, __PTR_ERR