initterm-r0drv-linux.c revision 10f0e3bfdb61e7bae30a1a1d9c17659a908c3d37
/* $Id$ */
/** @file
* IPRT - Initialization & Termination, R0 Driver, Linux.
*/
/*
* Copyright (C) 2006-2011 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* The contents of this file may alternatively be used under the terms
* of the Common Development and Distribution License Version 1.0
* (CDDL) only, as it comes in the "COPYING.CDDL" file of the
* VirtualBox OSE distribution, in which case the provisions of the
* CDDL are applicable instead of those of the GPL.
*
* You may elect to license modified versions of this file under the
* terms and conditions of either the GPL or the CDDL or both.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#include "the-linux-kernel.h"
#include "internal/initterm.h"
/*******************************************************************************
* Global Variables *
*******************************************************************************/
/** The IPRT work queue. */
static struct workqueue_struct *g_prtR0LnxWorkQueue;
#else
static DECLARE_TASK_QUEUE(g_rtR0LnxWorkQueue);
#endif
/*******************************************************************************
* Internal Functions *
*******************************************************************************/
#ifdef RT_ARCH_AMD64
/* in alloc-r0drv0-linux.c */
DECLHIDDEN(void) rtR0MemExecCleanup(void);
#endif
/**
* Pushes an item onto the IPRT work queue.
*
* @param pWork The work item.
* @param pfnWorker The callback function. It will be called back
* with @a pWork as argument.
*/
DECLHIDDEN(void) rtR0LnxWorkqueuePush(RTR0LNXWORKQUEUEITEM *pWork, void (*pfnWorker)(RTR0LNXWORKQUEUEITEM *))
{
#else
#endif
}
/**
* Flushes all items in the IPRT work queue.
*
* @remarks This is mostly for 2.4.x compatability. Must not be called from
* atomic contexts or with unncessary locks held.
*/
DECLHIDDEN(void) rtR0LnxWorkqueueFlush(void)
{
#else
#endif
}
DECLHIDDEN(int) rtR0InitNative(void)
{
if (!g_prtR0LnxWorkQueue)
return VERR_NO_MEMORY;
return VINF_SUCCESS;
}
DECLHIDDEN(void) rtR0TermNative(void)
{
#endif
#ifdef RT_ARCH_AMD64
#endif
}