7 * Kernel pointers have redundant information, so we can use a
8 * scheme where we can return either an error code or a dentry
9 * pointer with the same return value.
11 * This should be a per-architecture thing, to allow different
12 * error and pointer decisions.
14 static inline void *ERR_PTR(long error)
16 return (void *) error;
19 static inline long PTR_ERR(const void *ptr)
24 static inline long IS_ERR(const void *ptr)
26 return (unsigned long)ptr > (unsigned long)-1000L;
29 #endif /* _LINUX_ERR_H */