You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This function frees heap space (previously allocated with vmalloc). vfree returns OK in case of success, and SYSERR in case of failure.
syscall vfree (char* ptr, uint32 nbytes)
Your implementation should also handle the case where vfree is invoked incorrectly (i.e., on pages that had not been allocated before). In case of failure, none of the pages involved should be freed.
NOTE: what if nbytes is different from what was allocated? Do we also merge and split?
The text was updated successfully, but these errors were encountered:
This function frees heap space (previously allocated with vmalloc). vfree returns OK in case of success, and SYSERR in case of failure.
Your implementation should also handle the case where vfree is invoked incorrectly (i.e., on pages that had not been allocated before). In case of failure, none of the pages involved should be freed.
NOTE: what if
nbytes
is different from what was allocated? Do we also merge and split?The text was updated successfully, but these errors were encountered: