1
/* mm.h - prototypes and declarations for memory manager */
3
* GRUB -- GRand Unified Bootloader
4
* Copyright (C) 2002 Free Software Foundation, Inc.
6
* GRUB is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with GRUB; if not, write to the Free Software
18
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24
#include <grub/types.h>
25
#include <grub/symbol.h>
28
# define NULL ((void *) 0)
31
void grub_mm_init_region (void *addr, grub_size_t size);
32
void *EXPORT_FUNC(grub_malloc) (grub_size_t size);
33
void EXPORT_FUNC(grub_free) (void *ptr);
34
void *EXPORT_FUNC(grub_realloc) (void *ptr, grub_size_t size);
35
void *EXPORT_FUNC(grub_memalign) (grub_size_t align, grub_size_t size);
40
void grub_mm_dump (unsigned lineno);
43
#endif /* ! GRUB_MM_H */