Changes between Version 2 and Version 3 of kernel_malloc
- Timestamp:
- Dec 7, 2014, 7:26:32 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
kernel_malloc
v2 v3 15 15 === void '''_heap_init'''( ) === 16 16 This function initialises the kernel_heap[x][y] descriptors array 17 *It must exist one heap vseg in each cluster. The vseg length must be a power of 2, and the vseg base address must be aligned.17 It must exist one heap vseg in each cluster. The vseg length must be a power of 2, and the vseg base address must be aligned. 18 18 19 19 === void* '''_remote_malloc'''( unsigned int size, unsigned int x, unsigned int y ) === 20 This function uses and updates the '''kernel_heap[x][y] array, and returns a pointer (virtual address) on a physical memory block located in cluster[x][y].20 This function uses and updates the '''kernel_heap[x][y]''' array, and returns a pointer (virtual address) on a physical memory block located in cluster[x][y]. 21 21 * '''size''' : number of requested bytes 22 22 * '''x''' : cluster X coordinate