mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-07 00:19:27 +00:00
2716a9e2d7
I also added a generator cache to FileHandle. This way, multiple reads to a generated file (i.e in a synthfs) can transparently handle multiple calls to read() without the contents changing between calls. The cache is discarded at EOF (or when the FileHandle is destroyed.)
14 lines
322 B
C
14 lines
322 B
C
#pragma once
|
|
|
|
void kmalloc_init();
|
|
void *kmalloc(DWORD size) __attribute__ ((malloc));
|
|
void kfree(void*);
|
|
|
|
bool is_kmalloc_address(void*);
|
|
|
|
extern volatile DWORD sum_alloc;
|
|
extern volatile DWORD sum_free;
|
|
|
|
inline void* operator new(size_t, void* p) { return p; }
|
|
inline void* operator new[](size_t, void* p) { return p; }
|