stdlib.h File Reference

#include <stddef.h>

Include dependency graph for stdlib.h:

Go to the source code of this file.

Defines

#define ARRAY_SIZE(a)   (sizeof(a) / sizeof((a)[0]))
#define ALIGN(x, a)   __ALIGN_MASK(x,(typeof(x))(a)-1)
#define __ALIGN_MASK(x, mask)   (((x)+(mask))&~(mask))
#define MIN(a, b)   ((a) < (b) ? (a) : (b))
#define MAX(a, b)   ((a) > (b) ? (a) : (b))

Typedefs

typedef size_t malloc_mark_t

Functions

void * malloc (size_t size)
void free (void *ptr)
void malloc_mark (malloc_mark_t *place)
void malloc_release (malloc_mark_t *place)


Define Documentation

#define __ALIGN_MASK ( x,
mask   )     (((x)+(mask))&~(mask))

Definition at line 9 of file stdlib.h.

#define ALIGN ( x,
 )     __ALIGN_MASK(x,(typeof(x))(a)-1)

Definition at line 8 of file stdlib.h.

Referenced by write_acpi_tables().

#define ARRAY_SIZE (  )     (sizeof(a) / sizeof((a)[0]))

#define MAX ( a,
 )     ((a) > (b) ? (a) : (b))

Definition at line 12 of file stdlib.h.

Referenced by print_supported_chips().

#define MIN ( a,
 )     ((a) < (b) ? (a) : (b))

Definition at line 11 of file stdlib.h.

Referenced by k8t890_early_setup_ht().


Typedef Documentation

Definition at line 19 of file stdlib.h.


Function Documentation

void free ( void *  ptr  ) 

Definition at line 49 of file malloc.c.

Referenced by add_cmos_entry(), add_cmos_enum(), boot(), do_cmos_writes(), file_open(), init_flash_amd800(), list_cmos_entry(), main(), MPConfigTableHeader(), and xfree().

Here is the caller graph for this function:

void* malloc ( size_t  size  ) 

void malloc_mark ( malloc_mark_t place  ) 

Definition at line 14 of file malloc.c.

References free_mem_ptr, and printk_spew.

void malloc_release ( malloc_mark_t place  ) 

Definition at line 20 of file malloc.c.

References free_mem_ptr, and printk_spew.


Generated on Wed Jan 7 14:31:22 2009 for coreboot by  doxygen 1.5.5