2008-09-15 01:07:45 -05:00
|
|
|
//====== Copyright c 1996-2007, Valve Corporation, All rights reserved. =======//
|
|
|
|
//
|
|
|
|
// Purpose:
|
|
|
|
//
|
|
|
|
// $NoKeywords: $
|
|
|
|
//
|
|
|
|
//=============================================================================//
|
|
|
|
|
|
|
|
#ifndef SYSTEMINFORMATION_H
|
|
|
|
#define SYSTEMINFORMATION_H
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
#pragma once
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef PLATFORM_INTERFACE
|
|
|
|
#define PLATFORM_INTERFACE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
//
|
|
|
|
// Defines a possible outcome of a system call
|
|
|
|
//
|
|
|
|
enum SYSTEM_CALL_RESULT_t
|
|
|
|
{
|
|
|
|
SYSCALL_SUCCESS = 0, // System call succeeded
|
|
|
|
SYSCALL_FAILED = 1, // System call failed
|
|
|
|
SYSCALL_NOPROC = 2, // Failed to find required system procedure
|
|
|
|
SYSCALL_NODLL = 3, // Failed to find or load required system module
|
|
|
|
SYSCALL_UNSUPPORTED = 4, // System call unsupported on the OS
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Information about paged pool memory
|
|
|
|
//
|
|
|
|
struct PAGED_POOL_INFO_t
|
|
|
|
{
|
2024-03-09 04:57:12 +01:00
|
|
|
uint32_t numPagesUsed; // Number of Paged Pool pages used
|
|
|
|
uint32_t numPagesFree; // Number of Paged Pool pages free
|
2008-09-15 01:07:45 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
//
|
|
|
|
// Plat_GetMemPageSize
|
|
|
|
// Returns the size of a memory page in kilobytes.
|
|
|
|
//
|
2024-03-09 04:57:12 +01:00
|
|
|
PLATFORM_INTERFACE uint32_t Plat_GetMemPageSize();
|
2008-09-15 01:07:45 -05:00
|
|
|
|
|
|
|
//
|
|
|
|
// Plat_GetPagedPoolInfo
|
|
|
|
// Fills in the paged pool info structure if successful.
|
|
|
|
//
|
|
|
|
PLATFORM_INTERFACE SYSTEM_CALL_RESULT_t Plat_GetPagedPoolInfo( PAGED_POOL_INFO_t *pPPI );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // #ifndef SYSTEMINFORMATION_H
|