aboutsummaryrefslogtreecommitdiff
path: root/include/apos/uapi.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-09-22 17:36:18 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-09-22 17:36:18 +0300
commitae3905ebeb415e12667777463e36df6e00ca992c (patch)
tree18d1c528a16fafeeb0b2c15d6c54a0077c573f9d /include/apos/uapi.h
parentba8c7b300fbbf062453ef8858fac0f84dd25a518 (diff)
downloadkmi-ae3905ebeb415e12667777463e36df6e00ca992c.tar.gz
kmi-ae3905ebeb415e12667777463e36df6e00ca992c.zip
add assign syscall skeleton
Diffstat (limited to 'include/apos/uapi.h')
-rw-r--r--include/apos/uapi.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/apos/uapi.h b/include/apos/uapi.h
index 4fab0ec..8a3deea 100644
--- a/include/apos/uapi.h
+++ b/include/apos/uapi.h
@@ -559,6 +559,20 @@ SYSCALL_DECLARE1(kill, tid);
* @return \ref OK and 0.
*/
SYSCALL_DECLARE1(swap, tid);
+
+/**
+ * Assign syscall.
+ *
+ * Assign \p tid to \p cpu, immediately swaps from whetever was running on \p cpu.
+ *
+ * @param tid Thread to assign to \p cpu.
+ * @param cpu Cpu to run \p tid on.
+ * @param c Unused.
+ * @param d Unused.
+ * @param e Unused.
+ * @return \ref OK and 0.
+ */
+SYSCALL_DECLARE2(assign, tid, cpu);
/** @} */
/** @name Configuration syscalls. */