1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00
serenity/Kernel/API
Daniel Bertalan 77f9272aaf Kernel+UE: Add MAP_FIXED_NOREPLACE mmap() flag
This feature was introduced in version 4.17 of the Linux kernel, and
while it's not specified by POSIX, I think it will be a nice addition to
our system.

MAP_FIXED_NOREPLACE provides a less error-prone alternative to
MAP_FIXED: while regular fixed mappings would cause any intersecting
ranges to be unmapped, MAP_FIXED_NOREPLACE returns EEXIST instead. This
ensures that we don't corrupt our process's address space if something
is already at the requested address.

Note that the more portable way to do this is to use regular
MAP_ANONYMOUS, and check afterwards whether the returned address matches
what we wanted. This, however, has a large performance impact on
programs like Wine which try to reserve large portions of the address
space at once, as the non-matching addresses have to be unmapped
separately.
2021-12-23 23:08:10 +01:00
..
POSIX Kernel+UE: Add MAP_FIXED_NOREPLACE mmap() flag 2021-12-23 23:08:10 +01:00
FB.h Kernel+LibC: Fix misspelled "VERTICAL" in framebuffer ioctls 2021-11-21 20:22:48 +01:00
InodeWatcherEvent.h Kernel: Implement multi-watch InodeWatcher :^) 2021-05-12 22:38:20 +02:00
InodeWatcherFlags.h Kernel: Implement multi-watch InodeWatcher :^) 2021-05-12 22:38:20 +02:00
KeyCode.h Kernel: Ensure KeyEvent::key sent to Userspace respects keyboard layout 2021-11-26 11:19:36 -08:00
MemoryLayout.h Kernel: Move userspace virtual address range base to 0x10000 2021-12-22 00:02:36 -08:00
MousePacket.h Everywhere: Rename back-click to backward-click 2021-10-27 22:05:58 +03:00
Syscall.h Kernel: Remove sys$select() syscall 2021-12-12 21:48:50 +01:00
TimePage.h Kernel: Add CLOCK_MONOTONIC_COARSE to the kernel time page 2021-08-10 21:51:05 +02:00