Lines Matching defs:error
12 * scheme where we can return either an error code or a normal
16 * error and pointer decisions.
23 * IS_ERR_VALUE - Detect an error pointer.
31 * ERR_PTR - Create an error pointer.
32 * @error: A negative error code.
34 * Encodes @error into a pointer value. Users should consider the result
35 * opaque and not assume anything about how the error is encoded.
37 * Return: A pointer with @error encoded within its value.
39 static inline void * __must_check ERR_PTR(long error)
41 return (void *) error;
45 * PTR_ERR - Extract the error code from an error pointer.
46 * @ptr: An error pointer.
47 * Return: The error code within @ptr.
55 * IS_ERR - Detect an error pointer.
57 * Return: true if @ptr is an error pointer, false otherwise.
65 * IS_ERR_OR_NULL - Detect an error pointer or a null pointer.
76 * ERR_CAST - Explicitly cast an error-valued pointer to another pointer type
79 * Explicitly cast an error-valued pointer to another pointer type in such a
89 * PTR_ERR_OR_ZERO - Extract the error code from a pointer if it has one.
90 * @ptr: A potential error pointer.
93 * an error code to propagate errors received as error pointers.
103 * Return: The error code within @ptr if it is an error pointer; 0 otherwise.