mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
Kernel: Merge PurgeableVMObject into AnonymousVMObject
This implements memory commitments and lazy-allocation of committed memory.
This commit is contained in:
parent
b2a52f6208
commit
476f17b3f1
Notes:
sideshowbarker
2024-07-19 00:14:30 +09:00
Author: https://github.com/tomuta
Commit: 476f17b3f1
Pull-request: https://github.com/SerenityOS/serenity/pull/4707
35 changed files with 937 additions and 564 deletions
|
@ -106,7 +106,7 @@ void NetworkTask_main(void*)
|
|||
};
|
||||
|
||||
size_t buffer_size = 64 * KiB;
|
||||
auto buffer_region = MM.allocate_kernel_region(buffer_size, "Kernel Packet Buffer", Region::Access::Read | Region::Access::Write, false, true);
|
||||
auto buffer_region = MM.allocate_kernel_region(buffer_size, "Kernel Packet Buffer", Region::Access::Read | Region::Access::Write);
|
||||
auto buffer = (u8*)buffer_region->vaddr().get();
|
||||
timeval packet_timestamp;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue