unsafe public static bool IsSubtype(SharedHeapService.Allocation *childData, SystemType parent) { UIntPtr childHandle = SharedHeapService.GetType(childData); return(IsSubtype(childHandle, parent.id)); }
public static unsafe bool SetStartupEndpoint(ProcessHandle handle, int index, SharedHeapService.Allocation *endpoint) { Tracing.Log(Tracing.Debug, "ProcessHandle.SetStartupEndpoint(id={0:x8}, ndx={1}, ep={2:x8})", handle.id, (UIntPtr)index, (UIntPtr)endpoint); // // Convert the handle to a process; set the endpoint. // SharedHeap.Allocation *ep = (SharedHeap.Allocation *)endpoint; Process process = HandleTable.GetHandle(handle.id) as Process; return(process.SetEndpoint(index, ref ep)); }
public static extern unsafe uint KPTest(SharedHeapService.Allocation *sharedArgs, int i);
static public unsafe uint KPTest(SharedHeapService.Allocation *sharedArgs, int i) { return(Microsoft.Singularity.Stress.StressDirect.KPTest((SharedHeap.Allocation *)sharedArgs, i)); }
// Parameter is really: ExtensionContract.Exp opt(ExHeap) * public static unsafe void SetStartupEndpoint(int arg, SharedHeapService.Allocation *ep) { SharedHeap.Allocation *mep = (SharedHeap.Allocation *)ep; Thread.CurrentProcess.SetEndpoint(arg, ref mep); }
unsafe public static extern bool IsSubtype(SharedHeapService.Allocation *childData, SystemType parent);
public static extern unsafe bool SetStartupEndpoint(ProcessHandle handle, int index, SharedHeapService.Allocation *endpoint);
// Parameter is really: ExtensionContract.Exp opt(ExHeap) * public static extern unsafe void SetStartupEndpoint(int arg, SharedHeapService.Allocation *ep);