Changeset 5094 for trunk/src


Ignore:
Timestamp:
Feb 11, 2001, 3:59:56 PM (25 years ago)
Author:
bird
Message:

Initial hacking.

Location:
trunk/src/win32k/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/include/OS2KPG.h

    r5088 r5094  
    1 /* $Id: OS2KPG.h,v 1.1 2001-02-10 11:16:28 bird Exp $
     1/* $Id: OS2KPG.h,v 1.2 2001-02-11 14:59:56 bird Exp $
    22 *
    33 * OS/2 kernel page manager stuff.
     
    1111#define _OS2KPG_H_
    1212
     13/**
     14 * Paging enabled flag.
     15 * Two states:<ul>
     16 *      <li> 1 - Swapping enabled.
     17 *      <li> 0 - Swapping disabled. </ul>
     18 */
     19extern int * pPGSwapEnabled;
     20#define PGSwapEnabled (*pPGSwapEnabled)
     21
     22/**
     23 * Count of physical pages - hope this is correct.
     24 */
     25extern int * ppgPhysPages;
     26#define pgPhysPages (*ppgPhysPages)
     27
     28/**
     29 * Pointer to top of physical memory (physical address).
     30 */
     31extern PULONG ppgPhysMax;
     32#define pgPhysMax (*ppgPhysMax)
     33
     34/**
     35 * Count of resident pages.
     36 */
     37extern int * ppgResidentPages;
     38#define pgResidentPages (*ppgResidentPages)
     39
     40/**
     41 * Count of swappable pages which is currently present in memory.
     42 */
     43extern int * ppgSwappablePages;
     44#define pgSwappablePages (*ppgSwappablePages)
     45
     46/**
     47* Count of discardable pages which is currently present in memory.
     48*/
     49extern int * ppgDiscardableInmem;
     50#define pgDiscardableInmem (*ppgDiscardableInmem)
     51
     52/**
     53 * Count of discardable pages allocated.
     54 */
     55extern int * ppgDiscardablePages;
     56#define pgDiscardablePages (*ppgDiscardablePages)
     57
     58/**
     59 * Count of page faults since bootup.
     60 */
     61extern PULONG ppgcPageFaults;
     62#define pgcPageFaults (*ppgcPageFaults)
     63
     64/**
     65 * Count of page faults currently being processed.
     66 */
     67extern PULONG ppgcPageFaultsActive;
     68#define pgcPageFaultsActive (*ppgcPageFaultsActive)
    1369
    1470
     71/**
     72 * Returns the number of bytes of physical memory available.
     73 */
     74ULONG KRNLCALL PGPhysAvail(void);
    1575
    1676
     77/**
     78 * Returns the number of pageframes currently in use.
     79 */
     80ULONG KRNLCALL PGPhysPresent(void);
    1781
    1882#endif
  • trunk/src/win32k/include/OS2KSM.h

    r5088 r5094  
    1 /* $Id: OS2KSM.h,v 1.1 2001-02-10 11:16:29 bird Exp $
     1/* $Id: OS2KSM.h,v 1.2 2001-02-11 14:59:56 bird Exp $
    22 *
    33 * OS/2 kernel swapper manager stuff.
     
    1212
    1313
     14/**
     15 * Swapping enabled flag.
     16 * Two states:<ul>
     17 *      <li> 1 - Swapping enabled.
     18 *      <li> 0 - Swapping disabled. </ul>
     19 */
     20extern PSHORT       pSMswapping;
     21#define SMswapping (*pSMswapping)
    1422
     23/**
     24 * Real swapper file size in disk frames (ie. pages).
     25 */
     26extern PULONG       psmFileSize;
     27#define smFileSize (*psmFileSize)
     28
     29/**
     30 * Number of broken disk frames.
     31 */
     32extern PULONG       psmcBrokenDF;
     33#define smcBrokenDF (*psmcBrokenDF)
     34
     35/**
     36 * Number of disk frames (DF) currently in use.
     37 */
     38extern 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 */
     49extern 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 */
     55extern PULONG       pSMCFGMinFree;
     56#define SMCFGMinFree (*pSMCFGMinFree)
     57
     58/**
     59 * The initial swapfile size (in pages * 4) specified in config.sys.
     60 */
     61extern PULONG       pSMCFGSwapSize;
     62#define SMCFGSwapSize  (*pSMCFGSwapSize)
     63
     64/**
     65 * Number of swapper grow attempt which has failed since boot.
     66 */
     67extern 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 */
     74extern PULONG       pSMcInMemFile;
     75#define SMcInMemFile (*pSMcInMemFile)
    1576
    1677
Note: See TracChangeset for help on using the changeset viewer.