mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
Kernel: More PID/TID typing
This commit is contained in:
parent
7bdf54c837
commit
bee08a4b9f
Notes:
sideshowbarker
2024-07-19 04:06:40 +09:00
Author: https://github.com/BenWiederhake
Commit: bee08a4b9f
Pull-request: https://github.com/SerenityOS/serenity/pull/3057
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bgianfo
21 changed files with 67 additions and 60 deletions
|
@ -60,13 +60,13 @@ int profiling_disable(pid_t pid)
|
|||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int set_thread_boost(int tid, int amount)
|
||||
int set_thread_boost(pid_t tid, int amount)
|
||||
{
|
||||
int rc = syscall(SC_set_thread_boost, tid, amount);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int set_process_boost(int tid, int amount)
|
||||
int set_process_boost(pid_t tid, int amount)
|
||||
{
|
||||
int rc = syscall(SC_set_process_boost, tid, amount);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
|
@ -136,5 +136,4 @@ int get_stack_bounds(uintptr_t* user_stack_base, size_t* user_stack_size)
|
|||
int rc = syscall(SC_get_stack_bounds, user_stack_base, user_stack_size);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue