Loading...
Searching...
No Matches
Go to the documentation of this file.
29#include <linux/kernel.h>
51#define ERR_PTR(err) ((void*)(long)(err))
55#define PTR_ERR(ptr) ((long)(ptr))
59#define IS_ERR(ptr) IS_ERR_VALUE((unsigned long)(ptr))
63#define IS_ERR_OR_NULL(ptr) (!(ptr) || IS_ERR(ptr))
67#define IS_ERR_OR_ZERO(ptr) (IS_ERR(ptr) ? PTR_ERR(ptr) : 0)
71#define ERR_CAST(ptr) ((void*)(ptr))
74#ifndef PTR_ERR_OR_NULL
75#define PTR_ERR_OR_NULL(ptr) (IS_ERR(ptr) ? PTR_ERR(ptr) : 0)