Interface __PTR_ERR

Preprocessor macro expanding to an expression

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

#include <SYS/TYPES.H>

int e = __PTR_ERR(ptr)

Description

This macro converts an error code encoded in pointer with __ERR_PTR back to negative error code.

Arguments

Returns

This macro returns a negative error code.

See also

__ERR_PTR, __IS_ERR