Last change
on this file since 5087 was 4164, checked in by bird, 25 years ago |
Merged in the Grace branch. New Win32k!
|
File size:
1.3 KB
|
Line | |
---|
1 | /* $Id: smalloc.h,v 1.2 2000-09-02 21:08:04 bird Exp $
|
---|
2 | *
|
---|
3 | * Swappable Heap.
|
---|
4 | *
|
---|
5 | * Note: This heap does very little checking on input.
|
---|
6 | * Use with care! We're running at Ring-0!
|
---|
7 | *
|
---|
8 | * Copyright (c) 1999-2000 knut st. osmundsen
|
---|
9 | *
|
---|
10 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
11 | *
|
---|
12 | */
|
---|
13 |
|
---|
14 | /* XLATOFF */
|
---|
15 | #ifndef _SMALLOC_H_
|
---|
16 | #define _SMALLOC_H_
|
---|
17 |
|
---|
18 | #ifdef __cplusplus
|
---|
19 | extern "C" {
|
---|
20 | #endif
|
---|
21 | /* XLATON */
|
---|
22 |
|
---|
23 | struct HeapState_s;
|
---|
24 |
|
---|
25 | /*******************************************************************************
|
---|
26 | * Exported Functions and Variables *
|
---|
27 | *******************************************************************************/
|
---|
28 | int swpHeapInit(unsigned, unsigned);
|
---|
29 | void * smalloc(unsigned);
|
---|
30 | void * srealloc(void *, unsigned);
|
---|
31 | void sfree(void *);
|
---|
32 |
|
---|
33 | unsigned _swp_msize(void *);
|
---|
34 | int _swp_validptr(void *);
|
---|
35 | int _swp_validptr2(void *, unsigned);
|
---|
36 | unsigned _swp_memfree(void);
|
---|
37 | unsigned _swp_memused(void);
|
---|
38 | int _swp_state(struct HeapState_s *);
|
---|
39 | int _swp_heap_check(void);
|
---|
40 | void _swp_heapmin(void);
|
---|
41 | void _swp_dump_subheaps(void);
|
---|
42 | void _swp_dump_allocated(unsigned);
|
---|
43 |
|
---|
44 | extern unsigned cbSwpHeapMax; /* Maximum amount of memory used by the heap. */
|
---|
45 |
|
---|
46 | /* XLATOFF */
|
---|
47 | #ifdef __cplusplus
|
---|
48 | }
|
---|
49 | #endif
|
---|
50 | #endif /* _MALLOC_H_ */
|
---|
51 | /* XLATON */
|
---|
52 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.