b608f15cba5036182124f1eee68b761535aa6d14vboxsync/* $Id$ */
b608f15cba5036182124f1eee68b761535aa6d14vboxsync/** @file
b608f15cba5036182124f1eee68b761535aa6d14vboxsync * VBoxGuestR3Lib - Ring-3 Support Library for VirtualBox guest additions, Core Dumps.
b608f15cba5036182124f1eee68b761535aa6d14vboxsync */
b608f15cba5036182124f1eee68b761535aa6d14vboxsync
b608f15cba5036182124f1eee68b761535aa6d14vboxsync/*
b608f15cba5036182124f1eee68b761535aa6d14vboxsync * Copyright (C) 2010 Oracle Corporation
b608f15cba5036182124f1eee68b761535aa6d14vboxsync *
b608f15cba5036182124f1eee68b761535aa6d14vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
b608f15cba5036182124f1eee68b761535aa6d14vboxsync * available from http://www.virtualbox.org. This file is free software;
b608f15cba5036182124f1eee68b761535aa6d14vboxsync * you can redistribute it and/or modify it under the terms of the GNU
b608f15cba5036182124f1eee68b761535aa6d14vboxsync * General Public License (GPL) as published by the Free Software
b608f15cba5036182124f1eee68b761535aa6d14vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
b608f15cba5036182124f1eee68b761535aa6d14vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
b608f15cba5036182124f1eee68b761535aa6d14vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
b608f15cba5036182124f1eee68b761535aa6d14vboxsync *
b608f15cba5036182124f1eee68b761535aa6d14vboxsync * The contents of this file may alternatively be used under the terms
b608f15cba5036182124f1eee68b761535aa6d14vboxsync * of the Common Development and Distribution License Version 1.0
b608f15cba5036182124f1eee68b761535aa6d14vboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
b608f15cba5036182124f1eee68b761535aa6d14vboxsync * VirtualBox OSE distribution, in which case the provisions of the
b608f15cba5036182124f1eee68b761535aa6d14vboxsync * CDDL are applicable instead of those of the GPL.
b608f15cba5036182124f1eee68b761535aa6d14vboxsync *
b608f15cba5036182124f1eee68b761535aa6d14vboxsync * You may elect to license modified versions of this file under the
b608f15cba5036182124f1eee68b761535aa6d14vboxsync * terms and conditions of either the GPL or the CDDL or both.
b608f15cba5036182124f1eee68b761535aa6d14vboxsync */
b608f15cba5036182124f1eee68b761535aa6d14vboxsync
b608f15cba5036182124f1eee68b761535aa6d14vboxsync
b608f15cba5036182124f1eee68b761535aa6d14vboxsync/*******************************************************************************
b608f15cba5036182124f1eee68b761535aa6d14vboxsync* Header Files *
b608f15cba5036182124f1eee68b761535aa6d14vboxsync*******************************************************************************/
b608f15cba5036182124f1eee68b761535aa6d14vboxsync#include "VBGLR3Internal.h"
b608f15cba5036182124f1eee68b761535aa6d14vboxsync
b608f15cba5036182124f1eee68b761535aa6d14vboxsync
b608f15cba5036182124f1eee68b761535aa6d14vboxsync/**
b608f15cba5036182124f1eee68b761535aa6d14vboxsync * Write guest core dump.
b608f15cba5036182124f1eee68b761535aa6d14vboxsync *
b608f15cba5036182124f1eee68b761535aa6d14vboxsync * @returns IPRT status code.
b608f15cba5036182124f1eee68b761535aa6d14vboxsync */
b608f15cba5036182124f1eee68b761535aa6d14vboxsyncVBGLR3DECL(int) VbglR3WriteCoreDump(void)
b608f15cba5036182124f1eee68b761535aa6d14vboxsync{
b608f15cba5036182124f1eee68b761535aa6d14vboxsync VBoxGuestWriteCoreDump Req;
b608f15cba5036182124f1eee68b761535aa6d14vboxsync return vbglR3DoIOCtl(VBOXGUEST_IOCTL_WRITE_CORE_DUMP, &Req, sizeof(Req));
b608f15cba5036182124f1eee68b761535aa6d14vboxsync}
b608f15cba5036182124f1eee68b761535aa6d14vboxsync