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/OS2KPG.h

    r6701 r6815  
    1 /* $Id: OS2KPG.h,v 1.1 2001-09-14 01:50:15 bird Exp $
     1/* $Id: OS2KPG.h,v 1.2 2001-09-26 03:52:35 bird Exp $
    22 *
    33 * OS/2 kernel page manager stuff.
     
    1717 *      <li> 0 - Swapping disabled. </ul>
    1818 */
     19#ifdef KKRNLLIB
    1920extern int * pPGSwapEnabled;
    2021#define PGSwapEnabled (*pPGSwapEnabled)
     22#else
     23extern int   PGSwapEnabled;
     24#endif
     25
    2126
    2227/**
    2328 * Count of physical pages - hope this is correct.
    2429 */
     30#ifdef KKRNLLIB
    2531extern int * ppgPhysPages;
    2632#define pgPhysPages (*ppgPhysPages)
     33#else
     34extern int   pgPhysPages;
     35#endif
     36
    2737
    2838/**
    2939 * Pointer to top of physical memory (physical address).
    3040 */
     41#ifdef KKRNLLIB
    3142extern PULONG ppgPhysMax;
    3243#define pgPhysMax (*ppgPhysMax)
     44#else
     45extern ULONG  pgPhysMax;
     46#endif
     47
    3348
    3449/**
    3550 * Count of resident pages.
    3651 */
     52#ifdef KKRNLLIB
    3753extern int * ppgResidentPages;
    3854#define pgResidentPages (*ppgResidentPages)
     55#else
     56extern int   pgResidentPages;
     57#endif
     58
    3959
    4060/**
    4161 * Count of swappable pages which is currently present in memory.
    4262 */
     63#ifdef KKRNLLIB
    4364extern int * ppgSwappablePages;
    4465#define pgSwappablePages (*ppgSwappablePages)
     66#else
     67extern int   pgSwappablePages;
     68#endif
     69
    4570
    4671/**
    4772* Count of discardable pages which is currently present in memory.
    4873*/
     74#ifdef KKRNLLIB
    4975extern int * ppgDiscardableInmem;
    5076#define pgDiscardableInmem (*ppgDiscardableInmem)
     77#else
     78extern int   pgDiscardableInmem;
     79#endif
     80
    5181
    5282/**
    5383 * Count of discardable pages allocated.
    5484 */
     85#ifdef KKRNLLIB
    5586extern int * ppgDiscardablePages;
    5687#define pgDiscardablePages (*ppgDiscardablePages)
     88#else
     89extern int   pgDiscardablePages;
     90#endif
     91
    5792
    5893/**
    5994 * Count of page faults since bootup.
    6095 */
     96#ifdef KKRNLLIB
    6197extern PULONG ppgcPageFaults;
    6298#define pgcPageFaults (*ppgcPageFaults)
     99#else
     100extern ULONG  pgcPageFaults;
     101#endif
     102
    63103
    64104/**
    65105 * Count of page faults currently being processed.
    66106 */
     107#ifdef KKRNLLIB
    67108extern PULONG ppgcPageFaultsActive;
    68109#define pgcPageFaultsActive (*ppgcPageFaultsActive)
     110#else
     111extern ULONG  pgcPageFaultsActive;
     112#endif
    69113
    70114
     
    73117 */
    74118ULONG KRNLCALL PGPhysAvail(void);
     119ULONG KRNLCALL OrgPGPhysAvail(void);
    75120
    76121
     
    79124 */
    80125ULONG KRNLCALL PGPhysPresent(void);
     126ULONG KRNLCALL OrgPGPhysPresent(void);
     127
     128
     129/**
     130 * This function returns a bit vector for the dirty pages of a specified context
     131 * for a specified range of pages.
     132 *
     133 * The dirty bits for the range are reset.
     134 *
     135 * @returns OS/2 return code. (NO_ERROR on success)
     136 * @param   ulVirtualPageNo     Virtual page fram number.
     137 * @param   pPTDA               Pointer to the context.
     138 * @param   cPages              Number of pages. (max 32-bit due to ulDirtyBits.)
     139 * @param   ulDirtyBits         Dirty bits.
     140 * @remark  VDM function... Not imported any longer.
     141 */
     142/*ULONG KRNLCALL PGGetDirty(ULONG ulVirtualPageNo, PPTDA pPTDA, ULONG cPages, PULONG ulDirtyBits);*/
     143/*ULONG KRNLCALL OrgPGGetDirty(ULONG ulVirtualPageNo, PPTDA pPTDA, ULONG cPages, PULONG ulDirtyBits);*/
     144
    81145
    82146#endif
Note: See TracChangeset for help on using the changeset viewer.