~ubuntu-branches/ubuntu/precise/virtualbox/precise-updates

« back to all changes in this revision

Viewing changes to src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.c

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-10-17 23:23:09 UTC
  • mfrom: (3.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20111017232309-kzm6841lzk61ranj
Tags: 4.1.4-dfsg-1
* New upstream release.
  - Fixes missing icons when using pt_BR locale. (Closes: #507188)
  - Fixes guest additions download url. (Closes: #637349; LP: #840668)
* Refresh patches.
* Drop the vboxmouse x11 driver. The mouse integration is now completely
  handled by the kernel module.
* Restrict dh_pycentral to the virtualbox binary package.
* Merge changes from the Ubuntu package but use them only when built
  on Ubuntu:
  - Add an Apport hook.
  - Add vboxguest modalias to the package control field.
* Pass KBUILD_VERBOSE=2 to kmk.
* Add 36-fix-text-mode.patch to fix text mode when using the vboxvideo driver.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: VBoxGuest-solaris.c 36408 2011-03-24 16:25:47Z vboxsync $ */
 
1
/* $Id: VBoxGuest-solaris.c $ */
2
2
/** @file
3
3
 * VirtualBox Guest Additions Driver for Solaris.
4
4
 */
28
28
#include <sys/ddi_intr.h>
29
29
#include <sys/sunddi.h>
30
30
#include <sys/open.h>
 
31
#include <sys/sunldi.h>
 
32
#include <sys/file.h>
31
33
#undef u /* /usr/include/sys/user.h:249:1 is where this is defined to (curproc->p_user). very cool. */
32
34
 
33
35
#include "VBoxGuestInternal.h"
172
174
static pollhead_t           g_PollHead;
173
175
/** The IRQ Mutex */
174
176
static kmutex_t             g_IrqMtx;
 
177
/** Layered device handle for kernel keep-attached opens */
 
178
static ldi_handle_t         g_LdiHandle = NULL;
 
179
/** Ref counting for IDCOpen calls */
 
180
static uint64_t             g_cLdiOpens = 0;
 
181
/** The Mutex protecting the LDI handle in IDC opens */
 
182
static kmutex_t             g_LdiMtx;
175
183
 
176
184
/**
177
185
 * Kernel entry points
194
202
        else
195
203
            cmn_err(CE_NOTE, "failed to initialize driver logging rc=%d!\n", rc);
196
204
 
 
205
        mutex_init(&g_LdiMtx, NULL, MUTEX_DRIVER, NULL);
 
206
 
197
207
        /*
198
208
         * Prevent module autounloading.
199
209
         */
231
241
    RTLogDestroy(RTLogRelSetDefaultInstance(NULL));
232
242
    RTLogDestroy(RTLogSetDefaultInstance(NULL));
233
243
 
 
244
    mutex_destroy(&g_LdiMtx);
 
245
 
234
246
    RTR0Term();
235
247
    return rc;
236
248
}