 |
Xyris
0.5
|
Go to the documentation of this file.
17 static Mutex lock(
"alloc");
23 return (lock.
lock() ? 0 : 1);
28 return (lock.
unlock() ? 0 : 1);
bool unlock()
Release the mutex.
Kernel error definitions.
void freePage(void *page, size_t size)
Frees pages starting at a given page address.
int liballoc_free(void *page, unsigned int count)
This frees previously allocated memory. The void* parameter passed to the function is the exact same ...
bool lock()
Aquire the mutex.
void * newPage(size_t size)
Returns a new page in memory for use. If less than one page is requested, exactly one page will be al...
int liballoc_lock()
This function is supposed to lock the memory data structures. It could be as simple as disabling inte...
Liballoc heap implementation.
int liballoc_unlock()
This function unlocks what was previously locked by the liballoc_lock function. If it disabled interr...
void * liballoc_alloc(unsigned int count)
This is the hook into the local system which allocates pages. It accepts an integer parameter which i...