1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:27:45 +00:00

Kernel: Add memory scrubbing in slab_alloc() and slab_dealloc()

These now scrub allocated and freed memory like kmalloc()/kfree() was
already doing.
This commit is contained in:
Andreas Kling 2020-02-01 10:36:25 +01:00
parent 934b1d8a9b
commit 37d336d741
3 changed files with 16 additions and 0 deletions

View file

@ -29,6 +29,9 @@
#include <AK/Function.h>
#include <AK/Types.h>
#define SLAB_ALLOC_SCRUB_BYTE 0xab
#define SLAB_DEALLOC_SCRUB_BYTE 0xbc
class JsonObjectSerializer;
void* slab_alloc(size_t slab_size);