aboutsummaryrefslogtreecommitdiff
path: root/common/uapi/ipc.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-09-20 15:59:25 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-09-20 15:59:25 +0300
commitba8c7b300fbbf062453ef8858fac0f84dd25a518 (patch)
treeeecee0c15a2314e8bf318559d173bf2bb28a61f6 /common/uapi/ipc.c
parentd2f2714398d415eb9a628aab82b332b92ad5c923 (diff)
downloadkmi-ba8c7b300fbbf062453ef8858fac0f84dd25a518.tar.gz
kmi-ba8c7b300fbbf062453ef8858fac0f84dd25a518.zip
add notify syscall skeleton
+ Now to actually start implementing shit. :)
Diffstat (limited to 'common/uapi/ipc.c')
-rw-r--r--common/uapi/ipc.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/common/uapi/ipc.c b/common/uapi/ipc.c
index ecfced5..fa0376a 100644
--- a/common/uapi/ipc.c
+++ b/common/uapi/ipc.c
@@ -76,3 +76,21 @@ SYSCALL_DEFINE4(ipc_resp)(sys_arg_t d0, sys_arg_t d1, sys_arg_t d2,
/* something like return_from_callback(t, r) */
return (struct sys_ret){ OK, t->tid, d0, d1, d2, d3 };
}
+
+/**
+ * Notify syscall handler.
+ *
+ * \todo Implement.
+ *
+ * @param tid Thread ID to notify.
+ * @param swap Whether to swap immediately if possible.
+ * @param a0 Argument 0.
+ * @param a1 Argument 1.
+ * @return \ref OK and 0.
+ */
+SYSCALL_DEFINE4(ipc_notify)(sys_arg_t tid, sys_arg_t swap,
+ sys_arg_t a0, sys_arg_t a1){
+ /** \todo masquerade as kernel call, set from to 0 and set us as
+ * notify type, with arguments a0 and a1 as user-configurable data. */
+ return (struct sys_ret){ OK, 0, 0 /* type */, 0 /* from */, a0, a1 };
+}