From 39175324e152b6b1e905cd45ecec31e4b667ebea Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 14 Jul 2024 12:46:02 +0300 Subject: add some missing docs --- src/uapi/cap.c | 2 -- src/uapi/irq.c | 9 ++++++++- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/uapi/cap.c b/src/uapi/cap.c index 050d181..7003ed3 100644 --- a/src/uapi/cap.c +++ b/src/uapi/cap.c @@ -15,7 +15,6 @@ * * @param t Current tcb. * @param tid Thread ID whose capabilities to set. - * @param off Offset of capability, multiple of \c bits(cap). * @param caps Mask of capabilities to set. * @return \ref OK on success, \ref ERR_INVAL on invalid input. */ @@ -37,7 +36,6 @@ SYSCALL_DEFINE2(set_cap)(struct tcb *t, sys_arg_t tid, sys_arg_t caps) * * @param t Current tcb. * @param tid Thread ID whose capabilities to get. - * @param off Offset of capability, multiple of \c bits(cap). * @return \ref OK, capabilities. */ SYSCALL_DEFINE1(get_cap)(struct tcb *t, sys_arg_t tid) 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)) -- cgit v1.3