Skip to content

File falloc.h

File List > common > falloc > falloc.h

Go to the documentation of this file

#pragma once

#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>
#include <stdlib.h>

void falloc_init(uintptr_t start, size_t size, int log);
int falloc_malloc(void **devPtr, size_t size);
int falloc_addr_malloc(uintptr_t addr, size_t size);
int falloc_free(void *devPtr);
void falloc_clean();

#ifdef __cplusplus
}
#endif