Paolo 'Blaisorblade' Giarrusso | c13e569 | 2006-10-19 23:28:20 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2005 Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> |
| 3 | * Licensed under the GPL |
| 4 | */ |
| 5 | |
| 6 | #ifndef __UM_MALLOC_H__ |
| 7 | #define __UM_MALLOC_H__ |
| 8 | |
Jeff Dike | e4c4bf9 | 2007-07-15 23:38:56 -0700 | [diff] [blame] | 9 | #include "kern_constants.h" |
| 10 | |
| 11 | extern void *__kmalloc(int size, int flags); |
| 12 | static inline void *kmalloc(int size, int flags) |
| 13 | { |
| 14 | return __kmalloc(size, flags); |
| 15 | } |
| 16 | |
Paolo 'Blaisorblade' Giarrusso | c13e569 | 2006-10-19 23:28:20 -0700 | [diff] [blame] | 17 | extern void kfree(const void *ptr); |
| 18 | |
Jeff Dike | e4c4bf9 | 2007-07-15 23:38:56 -0700 | [diff] [blame] | 19 | extern void *vmalloc(unsigned long size); |
Paolo 'Blaisorblade' Giarrusso | c13e569 | 2006-10-19 23:28:20 -0700 | [diff] [blame] | 20 | extern void vfree(void *ptr); |
| 21 | |
| 22 | #endif /* __UM_MALLOC_H__ */ |