1 | /* $Id: OS2KSM.h,v 1.2 2001-02-11 14:59:56 bird Exp $
|
---|
2 | *
|
---|
3 | * OS/2 kernel swapper manager stuff.
|
---|
4 | *
|
---|
5 | * Copyright (c) 2001 knut st. osmundsen (knut.stange.osmundsen@mynd.no)
|
---|
6 | *
|
---|
7 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
8 | *
|
---|
9 | */
|
---|
10 | #ifndef _OS2KSM_H_
|
---|
11 | #define _OS2KSM_H_
|
---|
12 |
|
---|
13 |
|
---|
14 | /**
|
---|
15 | * Swapping enabled flag.
|
---|
16 | * Two states:<ul>
|
---|
17 | * <li> 1 - Swapping enabled.
|
---|
18 | * <li> 0 - Swapping disabled. </ul>
|
---|
19 | */
|
---|
20 | extern PSHORT pSMswapping;
|
---|
21 | #define SMswapping (*pSMswapping)
|
---|
22 |
|
---|
23 | /**
|
---|
24 | * Real swapper file size in disk frames (ie. pages).
|
---|
25 | */
|
---|
26 | extern PULONG psmFileSize;
|
---|
27 | #define smFileSize (*psmFileSize)
|
---|
28 |
|
---|
29 | /**
|
---|
30 | * Number of broken disk frames.
|
---|
31 | */
|
---|
32 | extern PULONG psmcBrokenDF;
|
---|
33 | #define smcBrokenDF (*psmcBrokenDF)
|
---|
34 |
|
---|
35 | /**
|
---|
36 | * Number of disk frames (DF) currently in use.
|
---|
37 | */
|
---|
38 | extern PULONG pSMcDFInuse;
|
---|
39 | #define SMcDFInuse (*pSMcDFInuse)
|
---|
40 |
|
---|
41 | /**
|
---|
42 | * Number of available disk frames (DF) currently.
|
---|
43 | */
|
---|
44 | #define SMcDFAvail (smFileSize - smcBrokenDF - SMcDFInuse)
|
---|
45 |
|
---|
46 | /**
|
---|
47 | * The minimum free space on the swap volume (in pages). (Addjusted SMCFGMinFree)
|
---|
48 | */
|
---|
49 | extern PULONG pSMMinFree;
|
---|
50 | #define SMMinFree (*pSMMinFree)
|
---|
51 |
|
---|
52 | /**
|
---|
53 | * The minimum free space on the swap volumen (in pages * 4) specified in config.sys.
|
---|
54 | */
|
---|
55 | extern PULONG pSMCFGMinFree;
|
---|
56 | #define SMCFGMinFree (*pSMCFGMinFree)
|
---|
57 |
|
---|
58 | /**
|
---|
59 | * The initial swapfile size (in pages * 4) specified in config.sys.
|
---|
60 | */
|
---|
61 | extern PULONG pSMCFGSwapSize;
|
---|
62 | #define SMCFGSwapSize (*pSMCFGSwapSize)
|
---|
63 |
|
---|
64 | /**
|
---|
65 | * Number of swapper grow attempt which has failed since boot.
|
---|
66 | */
|
---|
67 | extern PULONG psmcGrowFails;
|
---|
68 | #define smcGrowFails (*psmcGrowFails)
|
---|
69 |
|
---|
70 | /**
|
---|
71 | * Number of pages in a in memory swap file.
|
---|
72 | * This count isn't counted into the SMcDFInuse count I think.
|
---|
73 | */
|
---|
74 | extern PULONG pSMcInMemFile;
|
---|
75 | #define SMcInMemFile (*pSMcInMemFile)
|
---|
76 |
|
---|
77 |
|
---|
78 | #endif
|
---|