diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-03 17:41:28 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-03 17:47:58 +0300 |
| commit | 66e7f184a925247bac51aae02d01483faa5454fc (patch) | |
| tree | 8e4b3d0ce59305ccf5f93fd8f5b75be528a58633 /include | |
| parent | e06772a964e269d2d9abcb43a1edd868a62d4610 (diff) | |
| download | kmi-66e7f184a925247bac51aae02d01483faa5454fc.tar.gz kmi-66e7f184a925247bac51aae02d01483faa5454fc.zip | |
simplify notifications a little
Diffstat (limited to 'include')
| -rw-r--r-- | include/kmi/notify.h | 3 | ||||
| -rw-r--r-- | include/kmi/syscalls.h | 2 | ||||
| -rw-r--r-- | include/kmi/tcb.h | 3 |
3 files changed, 3 insertions, 5 deletions
diff --git a/include/kmi/notify.h b/include/kmi/notify.h index 554758c..c0c5d8b 100644 --- a/include/kmi/notify.h +++ b/include/kmi/notify.h @@ -28,7 +28,8 @@ * Implemented in uapi/ipc.c. * * @param t Thread to send notification to. - * @param flag Which type of notification to send. + * @param flag Which type of notification to send. If 0, sends out queued + * notifications if there are any, otherwise just returns. */ void notify(struct tcb *t, enum notify_flag flag); diff --git a/include/kmi/syscalls.h b/include/kmi/syscalls.h index 92ea264..c78ddae 100644 --- a/include/kmi/syscalls.h +++ b/include/kmi/syscalls.h @@ -175,7 +175,7 @@ enum notify_flag { /** A timer has expired. */ NOTIFY_TIMER = (1 << 1), - /** An interrupt. */ + /** An interrupt request. */ NOTIFY_IRQ = (1 << 2), }; diff --git a/include/kmi/tcb.h b/include/kmi/tcb.h index 1209a79..b52f5e3 100644 --- a/include/kmi/tcb.h +++ b/include/kmi/tcb.h @@ -181,9 +181,6 @@ struct tcb { * this id, might change in the future. */ id_t notify_id; - /** Notifcation state of thread. */ - enum tcb_notify notify_state; - /** Currently waiting notifications. */ enum notify_flag notify_flags; |
