aboutsummaryrefslogtreecommitdiff
path: root/src/uapi/irq.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-07-14 12:46:02 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-07-14 12:46:02 +0300
commit39175324e152b6b1e905cd45ecec31e4b667ebea (patch)
tree03d81988ac3ee2aafbed5645ceafe2277d0cee21 /src/uapi/irq.c
parentcc736811b95483b9e3c3ef03d58932716ae453e7 (diff)
downloadkmi-39175324e152b6b1e905cd45ecec31e4b667ebea.tar.gz
kmi-39175324e152b6b1e905cd45ecec31e4b667ebea.zip
add some missing docs
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))