Changes between Version 8 and Version 9 of kernel_malloc


Ignore:
Timestamp:
May 20, 2015, 4:53:47 PM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • kernel_malloc

    v8 v9  
    2323If no block satisfying the request is available it returns a NULL pointer.
    2424
     25=== void* '''_malloc'''( unsigned int size ) ===
     26This function returns a pointer (virtual address) on a physical memory block located in cluster[x][y], where (x,y) are the coordinates of the cluster containing the processor running the calling task.
     27 * '''size''' : number of requested bytes
     28The requested block size can be any value, but the allocated block can be larger than requested: the actual size is the smallest power of 2 value larger or equal to the requested size. The base address is always aligned.
     29If no block satisfying the request is available it returns a NULL pointer.