ladybird/Kernel/Graphics
Andreas Kling 30861daa93 Kernel: Simplify the File memory-mapping API
Before this change, we had File::mmap() which did all the work of
setting up a VMObject, and then creating a Region in the current
process's address space.

This patch simplifies the interface by removing the region part.
Files now only have to return a suitable VMObject from
vmobject_for_mmap(), and then sys$mmap() itself will take care of
actually mapping it into the address space.

This fixes an issue where we'd try to block on I/O (for inode metadata
lookup) while holding the address space spinlock. It also reduces time
spent holding the address space lock.
2022-08-24 14:57:51 +02:00
..
Bochs Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
Console Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
Generic Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
Intel Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
VirtIOGPU Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
VMWare Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
Definitions.h Kernel: Add ioctl to get the EDID from a framebuffer 2022-01-23 22:45:21 +00:00
DisplayConnector.cpp Kernel: Simplify the File memory-mapping API 2022-08-24 14:57:51 +02:00
DisplayConnector.h Kernel: Simplify the File memory-mapping API 2022-08-24 14:57:51 +02:00
GenericGraphicsAdapter.h Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
GraphicsManagement.cpp Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00
GraphicsManagement.h Kernel: Make self-contained locking smart pointers their own classes 2022-08-20 17:20:43 +02:00