singrdk/base/Interfaces/Singularity.V1/Services/MemoryInfoService.csi

44 lines
1.2 KiB
Plaintext
Raw Normal View History

2008-11-17 18:29:00 -05:00
////////////////////////////////////////////////////////////////////////////////
//
// Microsoft Research Singularity - Singularity ABI
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// File: MemoryInfoService.csi
//
// Note:
//
using System.Runtime.CompilerServices;
namespace Microsoft.Singularity.V1.Services
{
public struct MemoryInfoService
{
// What are the error status codes?
[NoHeapAllocation]
public static unsafe int MemoryUsageInfo(
ulong *totalMemoryFree,
ulong *totalMemoryInUse,
ulong *kernelHeapInUse,
ulong *kernelStackInUse,
ulong *totalSIPHeapInUse,
ulong *totalSIPStackInUse,
ulong *kernelStackReservation,
ulong *kernelHeapReservation
);
public static int MemoryUsageInfo(
out ulong totalMemoryFree,
out ulong totalMemoryInUse,
out ulong kernelHeapInUse,
out ulong kernelStackInUse,
out ulong totalSIPHeapInUse,
out ulong totalSIPStackInUse,
out ulong kernelStackReservation,
out ulong kernelHeapReservation
);
}
}