process-r0drv-linux.c revision ad6025fdf797313667d02b6dd49b0be9b58d4a05
137N/A/* $Id$ */
137N/A/** @file
137N/A * Incredibly Portable Runtime - Process, Ring-0 Driver, Linux.
137N/A */
943N/A
137N/A/*
137N/A * Copyright (C) 2006-2007 Sun Microsystems, Inc.
919N/A *
919N/A * This file is part of VirtualBox Open Source Edition (OSE), as
919N/A * available from http://www.virtualbox.org. This file is free software;
919N/A * you can redistribute it and/or modify it under the terms of the GNU
919N/A * General Public License (GPL) as published by the Free Software
919N/A * Foundation, in version 2 as it comes in the "COPYING" file of the
919N/A * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
919N/A * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
919N/A *
919N/A * The contents of this file may alternatively be used under the terms
919N/A * of the Common Development and Distribution License Version 1.0
919N/A * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
919N/A * VirtualBox OSE distribution, in which case the provisions of the
919N/A * CDDL are applicable instead of those of the GPL.
919N/A *
919N/A * You may elect to license modified versions of this file under the
919N/A * terms and conditions of either the GPL or the CDDL or both.
137N/A *
137N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
137N/A * Clara, CA 95054 USA or visit http://www.sun.com if you need
137N/A * additional information or have any questions.
493N/A */
137N/A
137N/A/*******************************************************************************
851N/A* Header Files *
137N/A*******************************************************************************/
911N/A#include "the-linux-kernel.h"
911N/A
911N/A#include <iprt/process.h>
911N/A
137N/A
137N/ARTDECL(RTPROCESS) RTProcSelf(void)
137N/A{
137N/A return (RTPROCESS)current->tgid;
137N/A}
137N/A
137N/A
137N/ARTR0DECL(RTR0PROCESS) RTR0ProcHandleSelf(void)
137N/A{
493N/A return (RTR0PROCESS)current->tgid;
137N/A}
137N/A
137N/A