]>
git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - tools/virtio/linux/err.h
5 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
7 static inline void * __must_check
ERR_PTR(long error
)
12 static inline long __must_check
PTR_ERR(const void *ptr
)
17 static inline long __must_check
IS_ERR(const void *ptr
)
19 return IS_ERR_VALUE((unsigned long)ptr
);
22 static inline long __must_check
IS_ERR_OR_NULL(const void *ptr
)
24 return !ptr
|| IS_ERR_VALUE((unsigned long)ptr
);