mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:27:35 +00:00
Kernel: Add a little comment header about KBuffer
This commit is contained in:
parent
605975adb5
commit
6b6b86fbf3
1 changed files with 10 additions and 0 deletions
|
@ -1,5 +1,15 @@
|
|||
#pragma once
|
||||
|
||||
// KBuffer: Statically sized kernel-only memory buffer.
|
||||
//
|
||||
// A KBuffer is a value-type convenience class that wraps a NonnullRefPtr<KBufferImpl>.
|
||||
// The memory is allocated via the global kernel-only page allocator, rather than via
|
||||
// kmalloc() which is what ByteBuffer/Vector/etc will use.
|
||||
//
|
||||
// This makes KBuffer a little heavier to allocate, but much better for large and/or
|
||||
// long-lived allocations, since they don't put all that weight and pressure on the
|
||||
// severely limited kmalloc heap.
|
||||
|
||||
#include <AK/Assertions.h>
|
||||
#include <Kernel/VM/MemoryManager.h>
|
||||
#include <Kernel/VM/Region.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue