diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-04-18 21:10:57 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2022-04-21 12:12:38 +0300 |
| commit | 7967a9ab13214543041e4408086668b4db8d3e62 (patch) | |
| tree | 4dab7b89bd9d5b5b8280877f9d8eb23a1edf1230 /common/uapi/proc.c | |
| parent | 1ceed7525272b82c1028ebd353e65c3a63bd2714 (diff) | |
| download | kmi-7967a9ab13214543041e4408086668b4db8d3e62.tar.gz kmi-7967a9ab13214543041e4408086668b4db8d3e62.zip | |
start working on timer subsys
Diffstat (limited to 'common/uapi/proc.c')
| -rw-r--r-- | common/uapi/proc.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/common/uapi/proc.c b/common/uapi/proc.c index e4673b5..7c0a69d 100644 --- a/common/uapi/proc.c +++ b/common/uapi/proc.c @@ -10,42 +10,33 @@ * would have to periodically ask the kernel about all threads it is aware of * via sys_sync. Dunno. */ -vm_t sys_fork(vm_t pid, vm_t u0, vm_t u1, vm_t u2) +SYSCALL_DEFINE1(fork)(vm_t pid) { - UNUSED(u0); - UNUSED(u1); - UNUSED(u2); + /* fork might not actually even need pid...? */ /* TODO: create new thread in the same process family */ return 0; } -vm_t sys_exec(vm_t pid, vm_t bin, vm_t argc, vm_t argv) +SYSCALL_DEFINE4(exec)(vm_t pid, vm_t bin, vm_t argc, vm_t argv) { /* TODO: execute new process */ return 0; } -vm_t sys_signal(vm_t pid, vm_t signal, vm_t u0, vm_t u1) +SYSCALL_DEFINE2(signal)(vm_t pid, vm_t signal) { - UNUSED(u0); - UNUSED(u1); /* TODO: signals? */ return 0; } -vm_t sys_switch(vm_t pid, vm_t u0, vm_t u1, vm_t u2) +SYSCALL_DEFINE1(switch)(vm_t pid) { - UNUSED(u0); - UNUSED(u1); - UNUSED(u2); /* TODO: switch to process */ return 0; } -vm_t sys_sync(vm_t buf, vm_t size, vm_t u0, vm_t u1) +SYSCALL_DEFINE2(sync)(vm_t buf, vm_t size) { - UNUSED(u0); - UNUSED(u1); /* check that only the process manager can use this syscall, otherwise * just dump process info into the buffer (I guess, not sure if this * will be quite required */ |
