source: trunk/src/win32k/kKrnlLib/include/kKLsmalloc.h

Last change on this file was 6701, checked in by bird, 24 years ago

Further progress. More CLib stuff.

File size: 1.5 KB
Line 
1/* $Id: kKLsmalloc.h,v 1.1 2001-09-14 01:50:18 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
19extern "C" {
20#endif
21/* XLATON */
22
23/*******************************************************************************
24* Structures and Typedefs *
25*******************************************************************************/
26struct HeapState_s;
27
28
29/*******************************************************************************
30* Exported Functions and Variables *
31*******************************************************************************/
32int swpHeapInit(unsigned, unsigned);
33void * smalloc(unsigned);
34void * srealloc(void *, unsigned);
35void sfree(void *);
36
37unsigned _swp_msize(void *);
38unsigned _swp_memfree(void);
39unsigned _swp_memused(void);
40int _swp_state(struct HeapState_s *);
41int _swp_heap_check(void);
42void _swp_heapmin(void);
43void _swp_dump_subheaps(void);
44void _swp_dump_allocated(unsigned);
45
46extern unsigned cbSwpHeapMax; /* Maximum amount of memory used by the heap. */
47
48/* XLATOFF */
49#ifdef __cplusplus
50}
51#endif
52#endif /* _MALLOC_H_ */
53/* XLATON */
54
Note: See TracBrowser for help on using the repository browser.