Redesign syscalls
All checks were successful
Build documentation / build-and-deploy (push) Successful in 40s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 40s
This commit is contained in:
@@ -41,6 +41,8 @@ struct boundary_tag {
|
||||
|
||||
struct boundary_tag* next; //< Linked list info.
|
||||
struct boundary_tag* prev; //< Linked list info.
|
||||
|
||||
int mem_rid;
|
||||
};
|
||||
|
||||
/** This function is supposed to lock the memory data structures. It
|
||||
@@ -67,7 +69,7 @@ extern int liballoc_unlock (void);
|
||||
* \return NULL if the pages were not allocated.
|
||||
* \return A pointer to the allocated memory.
|
||||
*/
|
||||
extern void* liballoc_alloc (int);
|
||||
extern void* liballoc_alloc (int pages, int* mem_rid);
|
||||
|
||||
/** This frees previously allocated memory. The void* parameter passed
|
||||
* to the function is the exact same value returned from a previous
|
||||
@@ -77,7 +79,7 @@ extern void* liballoc_alloc (int);
|
||||
*
|
||||
* \return 0 if the memory was successfully freed.
|
||||
*/
|
||||
extern int liballoc_free (void*, int);
|
||||
extern int liballoc_free (void* ptr, int pages, int mem_rid);
|
||||
|
||||
void* malloc (size_t); //< The standard function.
|
||||
void* realloc (void*, size_t); //< The standard function.
|
||||
|
||||
Reference in New Issue
Block a user