Xyris  0.5
errno.hpp
Go to the documentation of this file.
1 /**
2  * @file errno.hpp
3  * @author Keeton Feavel ([email protected])
4  * @brief Kernel error definitions
5  * @version 0.3
6  * @date 2020-08-08
7  *
8  * @copyright Copyright the Xyris Contributors (c) 2020
9  *
10  */
11 #pragma once
12 
13 /**
14  * @brief Kernel error codes. All values other than `OK` should be negative.
15  *
16  */
18  LockTaken = -4,
19  BufferFull = -3,
22  OK = 0,
23 };
24 
25 // FIXME: This is currently not thread safe.
26 extern KernelError errno;
BufferFull
@ BufferFull
Definition: errno.hpp:19
OK
@ OK
Definition: errno.hpp:22
KernelError
KernelError
Kernel error codes. All values other than OK should be negative.
Definition: errno.hpp:17
LockTaken
@ LockTaken
Definition: errno.hpp:18
GenericError
@ GenericError
Definition: errno.hpp:21
InvalidValue
@ InvalidValue
Definition: errno.hpp:20
errno
KernelError errno
Definition: errno.cpp:15