aboutsummaryrefslogtreecommitdiff
path: root/src/uapi/irq.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uapi/irq.c')
-rw-r--r--src/uapi/irq.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/uapi/irq.c b/src/uapi/irq.c
index 69602af..c109533 100644
--- a/src/uapi/irq.c
+++ b/src/uapi/irq.c
@@ -15,7 +15,7 @@
* @param t Current tcb.
* @param id Which IRQ number to register.
*
- * @return OK on success, non-zero otherwise.
+ * @return \ref OK on success, non-zero otherwise.
*/
SYSCALL_DEFINE1(irq_req)(struct tcb *t, sys_arg_t id)
{
@@ -28,6 +28,13 @@ SYSCALL_DEFINE1(irq_req)(struct tcb *t, sys_arg_t id)
return_args1(t, register_irq(t, id));
}
+/**
+ * Actual IRQ freeing syscall handler.
+ *
+ * @param t Current tcb.
+ * @param id ID of IRQ to free.
+ * @return \ref OK on success, non-zero otherwise.
+ */
SYSCALL_DEFINE1(free_irq)(struct tcb *t, sys_arg_t id)
{
if (!has_cap(t->caps, CAP_IRQ))