Subversion Repositories HelenOS-historic

Rev

Rev 791 | Rev 822 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 791 Rev 814
Line 30... Line 30...
30
#define __SLAB_H__
30
#define __SLAB_H__
31
 
31
 
32
#include <adt/list.h>
32
#include <adt/list.h>
33
#include <synch/spinlock.h>
33
#include <synch/spinlock.h>
34
#include <arch/atomic.h>
34
#include <arch/atomic.h>
-
 
35
#include <mm/frame.h>
35
 
36
 
36
/** Minimum size to be allocated by malloc */
37
/** Minimum size to be allocated by malloc */
37
#define SLAB_MIN_MALLOC_W 4
38
#define SLAB_MIN_MALLOC_W 4
38
 
39
 
39
/** Maximum size to be allocated by malloc */
40
/** Maximum size to be allocated by malloc */
Line 124... Line 125...
124
extern void slab_print_list(void);
125
extern void slab_print_list(void);
125
 
126
 
126
/* Malloc support */
127
/* Malloc support */
127
extern void * kalloc(unsigned int size, int flags);
128
extern void * kalloc(unsigned int size, int flags);
128
extern void kfree(void *obj);
129
extern void kfree(void *obj);
-
 
130
#define malloc(x)  kalloc(x, FRAME_ATOMIC)
-
 
131
#define free(x)    kfree(x)
129
#endif
132
#endif