Changeset 0c11618 in rtems


Ignore:
Timestamp:
Nov 11, 2009, 8:36:44 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
ea7d86b
Parents:
00735ee
Message:

2009-11-11 Sebastian Huber <sebastian.huber@…>

  • libcsupport/Makefile.am, libcsupport/include/rtems/malloc.h, libcsupport/src/rtems_malloc.c: New function rtems_malloc().
Location:
cpukit
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r00735ee r0c11618  
     12009-11-11      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * libcsupport/Makefile.am, libcsupport/include/rtems/malloc.h,
     4        libcsupport/src/rtems_malloc.c: New function rtems_malloc().
     5
    162009-11-11      Jennifer Averett <jennifer.averett@OARcorp.com>
    27
  • cpukit/libcsupport/Makefile.am

    r00735ee r0c11618  
    9191    src/malloc_statistics_helpers.c src/malloc_boundary.c \
    9292    src/posix_memalign.c src/rtems_memalign.c src/malloc_deferred.c \
    93     src/malloc_sbrk_helpers.c src/malloc_dirtier.c src/malloc_p.h
     93    src/malloc_sbrk_helpers.c src/malloc_dirtier.c src/malloc_p.h \
     94    src/rtems_malloc.c
    9495
    9596PASSWORD_GROUP_C_FILES = src/getpwent.c
  • cpukit/libcsupport/include/rtems/malloc.h

    r00735ee r0c11618  
    150150);
    151151
     152/**
     153 * @brief Allocates a memory area of size @a size bytes from the heap.
     154 *
     155 * If the alignment parameter @a alignment is not equal to zero, the allocated
     156 * memory area will begin at an address aligned by this value.
     157 *
     158 * If the boundary parameter @a boundary is not equal to zero, the allocated
     159 * memory area will fulfill a boundary constraint.  The boundary value
     160 * specifies the set of addresses which are aligned by the boundary value.  The
     161 * interior of the allocated memory area will not contain an element of this
     162 * set.  The begin or end address of the area may be a member of the set.
     163 *
     164 * A size value of zero will return a unique address which may be freed with
     165 * free().
     166 *
     167 * The memory allocated by this function can be released with a call to free().
     168 *
     169 * @return A pointer to the begin of the allocated memory area, or @c NULL if
     170 * no memory is available or the parameters are inconsistent.
     171 */
     172void *rtems_malloc(size_t size, uintptr_t alignment, uintptr_t boundary);
     173
    152174#ifdef __cplusplus
    153175}
Note: See TracChangeset for help on using the changeset viewer.