diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/kmi/bits.h | 6 | ||||
| -rw-r--r-- | include/kmi/uapi.h | 12 |
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); /** |
