|
|
1.1 root 1: #ifndef __SYS_KMEM_H__
2: #define __SYS_KMEM_H__
3:
4: /*
5: * This header deals with kernel memory-management functions.
6: */
7: /*
8: *-IMPORTS:
9: * <common/ccompat.h>
10: * __EXTERN_C_BEGIN__
11: * __EXTERN_C_END__
12: * __VOID__
13: * __PROTO ()
14: * <common/_size.h>
15: * size_t
16: * <common/_null.h>
17: * NULL
18: */
19:
20: #include <common/ccompat.h>
21: #include <common/_size.h>
22: #include <common/_null.h>
23:
24:
25: /*
26: * Flag values for kmem_alloc () and kmem_zalloc (), also used by various
27: * lock-allocation functions in <sys/ksynch.h>
28: */
29:
30: enum { KM_SLEEP,
31: KM_NOSLEEP
32: };
33:
34:
35: __EXTERN_C_BEGIN__
36:
37: __VOID__ * kmem_alloc __PROTO ((size_t _size, int _flag));
38: void kmem_free __PROTO ((__VOID__ * _addr, size_t _size));
39: __VOID__ * kmem_zalloc __PROTO ((size_t _size, int _flag));
40:
41: __EXTERN_C_END__
42:
43:
44: #endif /* ! defined (__SYS_KMEM_H__) */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.