Ignore:
Timestamp:
Sep 26, 2001, 5:52:37 AM (24 years ago)
Author:
bird
Message:

Updated to work for kKrnlLib.DLL and internally in kKrnlLib.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/kKrnlLib/include/OS2KSM.h

    r6701 r6815  
    1 /* $Id: OS2KSM.h,v 1.1 2001-09-14 01:50:15 bird Exp $
     1/* $Id: OS2KSM.h,v 1.2 2001-09-26 03:52:36 bird Exp $
    22 *
    33 * OS/2 kernel swapper manager stuff.
     
    1818 *      <li> 0 - Swapping disabled. </ul>
    1919 */
     20#ifdef KKRNLLIB
    2021extern PSHORT       pSMswapping;
    2122#define SMswapping (*pSMswapping)
     23#else
     24extern SHORT        SMswapping;
     25#endif
     26
    2227
    2328/**
    2429 * Real swapper file size in disk frames (ie. pages).
    2530 */
     31#ifdef KKRNLLIB
    2632extern PULONG       psmFileSize;
    2733#define smFileSize (*psmFileSize)
     34#else
     35extern ULONG        smFileSize;
     36#endif
     37
    2838
    2939/**
    3040 * Number of broken disk frames.
    3141 */
     42#ifdef KKRNLLIB
    3243extern PULONG       psmcBrokenDF;
    3344#define smcBrokenDF (*psmcBrokenDF)
     45#else
     46extern ULONG        smcBrokenDF;
     47#endif
     48
    3449
    3550/**
    3651 * Number of disk frames (DF) currently in use.
    3752 */
     53#ifdef KKRNLLIB
    3854extern PULONG       pSMcDFInuse;
    3955#define SMcDFInuse (*pSMcDFInuse)
     56#else
     57extern ULONG        SMcDFInuse;
     58#endif
     59
    4060
    4161/**
     
    4464#define SMcDFAvail (smFileSize - smcBrokenDF - SMcDFInuse)
    4565
     66
    4667/**
    4768 * The minimum free space on the swap volume (in pages). (Addjusted SMCFGMinFree)
    4869 */
     70#ifdef KKRNLLIB
    4971extern PULONG       pSMMinFree;
    5072#define SMMinFree (*pSMMinFree)
     73#else
     74extern ULONG        SMMinFree;
     75#endif
     76
    5177
    5278/**
    5379 * The minimum free space on the swap volumen (in pages * 4) specified in config.sys.
    5480 */
     81#ifdef KKRNLLIB
    5582extern PULONG       pSMCFGMinFree;
    5683#define SMCFGMinFree (*pSMCFGMinFree)
     84#else
     85extern ULONG        SMCFGMinFree;
     86#endif
     87
    5788
    5889/**
    5990 * The initial swapfile size (in pages * 4) specified in config.sys.
    6091 */
     92#ifdef KKRNLLIB
    6193extern PULONG       pSMCFGSwapSize;
    6294#define SMCFGSwapSize  (*pSMCFGSwapSize)
     95#else
     96extern ULONG        SMCFGSwapSize;
     97#endif
     98
    6399
    64100/**
    65101 * Number of swapper grow attempt which has failed since boot.
    66102 */
     103#ifdef KKRNLLIB
    67104extern PULONG       psmcGrowFails;
    68105#define smcGrowFails (*psmcGrowFails)
     106#else
     107extern ULONG        smcGrowFails;
     108#endif
     109
    69110
    70111/**
     
    72113 * This count isn't counted into the SMcDFInuse count I think.
    73114 */
     115#ifdef KKRNLLIB
    74116extern PULONG       pSMcInMemFile;
    75117#define SMcInMemFile (*pSMcInMemFile)
     118#else
     119extern ULONG        SMcInMemFile;
     120#endif
    76121
    77122
Note: See TracChangeset for help on using the changeset viewer.