blob: 0ad17cb83d96ef6b0ace0a4ea800113a8cc05040 [file] [log] [blame]
Paolo 'Blaisorblade' Giarrussoc13e5692006-10-19 23:28:20 -07001/*
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 Dikee4c4bf92007-07-15 23:38:56 -07009#include "kern_constants.h"
10
11extern void *__kmalloc(int size, int flags);
12static inline void *kmalloc(int size, int flags)
13{
14 return __kmalloc(size, flags);
15}
16
Paolo 'Blaisorblade' Giarrussoc13e5692006-10-19 23:28:20 -070017extern void kfree(const void *ptr);
18
Jeff Dikee4c4bf92007-07-15 23:38:56 -070019extern void *vmalloc(unsigned long size);
Paolo 'Blaisorblade' Giarrussoc13e5692006-10-19 23:28:20 -070020extern void vfree(void *ptr);
21
22#endif /* __UM_MALLOC_H__ */