mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
Kernel: Some futex improvements
This adds support for FUTEX_WAKE_OP, FUTEX_WAIT_BITSET, FUTEX_WAKE_BITSET, FUTEX_REQUEUE, and FUTEX_CMP_REQUEUE, as well well as global and private futex and absolute/relative timeouts against the appropriate clock. This also changes the implementation so that kernel resources are only used when a thread is blocked on a futex. Global futexes are implemented as offsets in VMObjects, so that different processes can share a futex against the same VMObject despite potentially being mapped at different virtual addresses.
This commit is contained in:
parent
7581b64705
commit
1d621ab172
Notes:
sideshowbarker
2024-07-18 23:08:10 +09:00
Author: https://github.com/tomuta
Commit: 1d621ab172
Pull-request: https://github.com/SerenityOS/serenity/pull/4467
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/bgianfo
Reviewed-by: https://github.com/bugaevc
23 changed files with 928 additions and 63 deletions
|
@ -310,10 +310,15 @@ struct SC_getpeername_params {
|
|||
};
|
||||
|
||||
struct SC_futex_params {
|
||||
const i32* userspace_address;
|
||||
u32* userspace_address;
|
||||
int futex_op;
|
||||
i32 val;
|
||||
const timespec* timeout;
|
||||
u32 val;
|
||||
union {
|
||||
const timespec* timeout;
|
||||
u32 val2;
|
||||
};
|
||||
u32* userspace_address2;
|
||||
u32 val3;
|
||||
};
|
||||
|
||||
struct SC_setkeymap_params {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue