aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-06-01 16:47:14 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-06-01 16:47:14 +0300
commit2daea019d2869a1a65829a9883701f8e8453e2fe (patch)
tree5b2f6321b6f21fd0eeed54affe8809a5ba6f31be /include
parent7a1c7ed1b1c30ba4c668194a955fb414e471bade (diff)
downloadkmi-2daea019d2869a1a65829a9883701f8e8453e2fe.tar.gz
kmi-2daea019d2869a1a65829a9883701f8e8453e2fe.zip
document sleep
Diffstat (limited to 'include')
-rw-r--r--include/kmi/bits.h6
-rw-r--r--include/kmi/uapi.h12
2 files changed, 17 insertions, 1 deletions
diff --git a/include/kmi/bits.h b/include/kmi/bits.h
index 5fe438c..fea7b9a 100644
--- a/include/kmi/bits.h
+++ b/include/kmi/bits.h
@@ -379,6 +379,12 @@ uint64_t __bswap64(uint64_t u);
#endif
+/**
+ * Check if value is power of 2.
+ *
+ * @param x Value to check.
+ * @return \ref true if power of 2, \ref false otherwise
+ */
#define is_powerof2(x) (((x) & ((x) - 1)) == 0)
#endif /* KMI_BITS_H */
diff --git a/include/kmi/uapi.h b/include/kmi/uapi.h
index d1d3a38..5e5f446 100644
--- a/include/kmi/uapi.h
+++ b/include/kmi/uapi.h
@@ -765,7 +765,17 @@ SYSCALL_DECLARE1(poweroff, type);
/**
* Sets the current core to sleep. Might take parameters in the future if there
- * arises a need for different levels of sleep, but for now zero params. */
+ * arises a need for different levels of sleep, but for now zero params.
+ *
+ * @param t Current tcb.
+ * @param a Unused.
+ * @param b Unused.
+ * @param c Unused.
+ * @param d Unused.
+ * @param e Unused.
+ *
+ * Shouldn't return at all.
+ */
SYSCALL_DECLARE0(sleep);
/**