コード例 #1
0
        unsafe public static bool IsSubtype(SharedHeapService.Allocation *childData,
                                            SystemType parent)
        {
            UIntPtr childHandle = SharedHeapService.GetType(childData);

            return(IsSubtype(childHandle, parent.id));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
ファイル: StressDirect.cs プロジェクト: Paul1nh0/Singularity
 public static extern unsafe uint KPTest(SharedHeapService.Allocation *sharedArgs, int i);
コード例 #4
0
 static public unsafe uint KPTest(SharedHeapService.Allocation *sharedArgs, int i)
 {
     return(Microsoft.Singularity.Stress.StressDirect.KPTest((SharedHeap.Allocation *)sharedArgs, i));
 }
コード例 #5
0
 // 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);
 }
コード例 #6
0
 unsafe public static extern bool IsSubtype(SharedHeapService.Allocation *childData,
                                            SystemType parent);
コード例 #7
0
 public static extern unsafe bool SetStartupEndpoint(ProcessHandle handle,
                                                     int index,
                                                     SharedHeapService.Allocation *endpoint);
コード例 #8
0
 // Parameter is really: ExtensionContract.Exp opt(ExHeap) *
 public static extern unsafe void SetStartupEndpoint(int arg, SharedHeapService.Allocation *ep);