process-r0drv-solaris.c revision c98fb3e16fcd571a790eab772c0c66173d225205
0N/A/* $Id$ */
1879N/A/** @file
0N/A * innotek Portable Runtime - Process Management, Ring-0 Driver, Solaris.
0N/A */
0N/A
0N/A/*
0N/A * Copyright (C) 2006-2007 innotek GmbH
0N/A *
0N/A * This file is part of VirtualBox Open Source Edition (OSE), as
0N/A * available from http://www.virtualbox.org. This file is free software;
0N/A * you can redistribute it and/or modify it under the terms of the GNU
0N/A * General Public License as published by the Free Software Foundation,
0N/A * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
0N/A * distribution. VirtualBox OSE is distributed in the hope that it will
0N/A * be useful, but WITHOUT ANY WARRANTY of any kind.
0N/A */
0N/A
0N/A/*******************************************************************************
1472N/A* Header Files *
1472N/A*******************************************************************************/
1472N/A#include "the-solaris-kernel.h"
0N/A
0N/A#include <iprt/process.h>
1879N/A
1879N/A
1879N/ARTDECL(RTPROCESS) RTProcSelf(void)
1879N/A{
1879N/A struct proc *pCurProc = curproc;
1879N/A struct pid *pPidInfo = pCurProc->p_pidp;
1879N/A
1879N/A return pPidInfo->pid_id;
1879N/A}
1879N/A
1879N/A
RTR0DECL(RTR0PROCESS) RTR0ProcHandleSelf(void)
{
return (RTR0PROCESS)curproc;
}