mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:38:11 +00:00
Kernel: Use Userspace<T> in sched_setparam syscall
Note: I switched from copying the single element out of the sched_param struct, to copy struct it self as it is identical in functionality. This way the types match up nicer with the Userpace<T> api's and it conforms to the conventions used in other syscalls.
This commit is contained in:
parent
1209bf82c1
commit
10e912d68c
2 changed files with 8 additions and 7 deletions
|
@ -291,7 +291,7 @@ public:
|
|||
int sys$setsockopt(const Syscall::SC_setsockopt_params*);
|
||||
int sys$getsockname(const Syscall::SC_getsockname_params*);
|
||||
int sys$getpeername(const Syscall::SC_getpeername_params*);
|
||||
int sys$sched_setparam(pid_t pid, const struct sched_param* param);
|
||||
int sys$sched_setparam(pid_t pid, Userspace<const struct sched_param*>);
|
||||
int sys$sched_getparam(pid_t pid, struct sched_param* param);
|
||||
int sys$create_thread(void* (*)(void*), const Syscall::SC_create_thread_params*);
|
||||
void sys$exit_thread(void*);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue