aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/kmi/caps.h1
-rw-r--r--include/kmi/syscalls.h1
-rw-r--r--include/kmi/types.h2
-rw-r--r--include/kmi/uapi.h16
4 files changed, 16 insertions, 4 deletions
diff --git a/include/kmi/caps.h b/include/kmi/caps.h
index cc54dbe..df81ef2 100644
--- a/include/kmi/caps.h
+++ b/include/kmi/caps.h
@@ -28,7 +28,6 @@
* Clear capabilities.
*
* @param x Capabilities to modify.
- * @param o Offset.
* @param c Capabilities to set.
*/
#define clear_caps(x, c) clear_bits(x, c)
diff --git a/include/kmi/syscalls.h b/include/kmi/syscalls.h
index 1ca2113..5079d74 100644
--- a/include/kmi/syscalls.h
+++ b/include/kmi/syscalls.h
@@ -260,6 +260,7 @@ enum conf_param {
CONF_PAGE_SIZE,
};
+/** Capabilities of process. */
enum sys_cap {
/** Thread is allowed to set capabilities of other threads. */
CAP_CAPS = (1 << 0),
diff --git a/include/kmi/types.h b/include/kmi/types.h
index 040d3c6..709ca02 100644
--- a/include/kmi/types.h
+++ b/include/kmi/types.h
@@ -446,7 +446,7 @@ typedef union {
#define NULL 0
/* some common types used throughout the kernel */
-/** Status, used with codes in \ref status_codes. */
+/** Status, used with codes in \ref sys_status. */
typedef int_fast8_t stat_t;
/** ID of something. @todo should this be signed? Linux etc seems to assume it
diff --git a/include/kmi/uapi.h b/include/kmi/uapi.h
index 3f03879..2805a04 100644
--- a/include/kmi/uapi.h
+++ b/include/kmi/uapi.h
@@ -741,7 +741,7 @@ SYSCALL_DECLARE2(set_cap, tid, caps);
*
* Returns \ref OK, capabilities.
*/
-SYSCALL_DECLARE1(cap_get, tid);
+SYSCALL_DECLARE1(get_cap, tid);
/**
* Clear capabilities.
@@ -808,7 +808,7 @@ SYSCALL_DECLARE0(sleep);
* Request to handle IRQ.
*
* @param t Current tcb.
- * @param id ID if IRQ to handle.
+ * @param id ID of IRQ to handle.
* @param b Unused.
* @param c Unused.
* @param d Unused.
@@ -820,6 +820,18 @@ SYSCALL_DECLARE0(sleep);
SYSCALL_DECLARE1(irq_req, id);
/**
+ * Remove handled IRQ.
+ *
+ * @param t Current tcb.
+ * @param id ID of IRQ to stop handling.
+ * @param b Unused.
+ * @param c Unused.
+ * @param d Unused.
+ * @param e Unused.
+ */
+SYSCALL_DECLARE1(free_irq, id);
+
+/**
* Request that a thread exits, i.e. removes itself from the thread list and
* frees all kernel data associated with thread.
* Note that similarly to \ref kill(), some shared resources may cause the