diff options
Diffstat (limited to 'src/kernel/syscall/actions/sys_get_pid.c')
-rw-r--r-- | src/kernel/syscall/actions/sys_get_pid.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kernel/syscall/actions/sys_get_pid.c b/src/kernel/syscall/actions/sys_get_pid.c new file mode 100644 index 0000000..7631230 --- /dev/null +++ b/src/kernel/syscall/actions/sys_get_pid.c @@ -0,0 +1,7 @@ +#include <stdint.h> +#include <kernel/tasks/process.h> + +uint32_t sys_get_pid() +{ + return current_proc->pid; +}
\ No newline at end of file |