diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-14 12:46:02 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-14 12:46:02 +0300 |
| commit | 39175324e152b6b1e905cd45ecec31e4b667ebea (patch) | |
| tree | 03d81988ac3ee2aafbed5645ceafe2277d0cee21 /src/uapi | |
| parent | cc736811b95483b9e3c3ef03d58932716ae453e7 (diff) | |
| download | kmi-39175324e152b6b1e905cd45ecec31e4b667ebea.tar.gz kmi-39175324e152b6b1e905cd45ecec31e4b667ebea.zip | |
add some missing docs
Diffstat (limited to 'src/uapi')
| -rw-r--r-- | src/uapi/cap.c | 2 | ||||
| -rw-r--r-- | src/uapi/irq.c | 9 |
2 files changed, 8 insertions, 3 deletions
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)) |
