]>
git.proxmox.com Git - ceph.git/blob - ceph/src/include/err.h
5 * adapted from linux 2.6.24 include/linux/err.h
8 #define IS_ERR_VALUE(x) ((x) >= (unsigned long)-MAX_ERRNO)
12 /* this generates a warning in c++; caller can do the cast manually
13 static inline void *ERR_PTR(long error)
15 return (void *) error;
19 static inline long PTR_ERR(const void *ptr
)
24 static inline long IS_ERR(const void *ptr
)
26 return IS_ERR_VALUE((unsigned long)ptr
);