VirtualBox

Changeset 68793 in vbox


Ignore:
Timestamp:
Sep 19, 2017 3:46:36 PM (7 years ago)
Author:
vboxsync
Message:

VBoxGuest/solaris: fixes

Location:
trunk/src/VBox/Additions/common/VBoxGuest
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/Makefile.kmk

    r68642 r68793  
    242242endif
    243243
     244
     245#
     246# Helper script.
     247#
     248INSTALLS.solaris += VBoxGuestLoad
     249VBoxGuestLoad_TEMPLATE = VBOXGUESTR0
     250VBoxGuestLoad_EXEC_SOURCES = solaris/load.sh
     251
     252
    244253include $(FILE_KBUILD_SUB_FOOTER)
    245254
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.c

    r68638 r68793  
    193193static bool                 g_fSoftIntRegistered = false;
    194194
     195/** Additional IPRT function we need to drag in for vboxfs. */
     196PFNRT g_Deps[] =
     197{
     198    (PFNRT)RTErrConvertToErrno,
     199};
     200
     201
    195202/**
    196203 * Kernel entry points
     
    259266int _info(struct modinfo *pModInfo)
    260267{
    261     LogFlow((DEVICE_NAME ":_info\n"));
     268    /* LogFlow((DEVICE_NAME ":_info\n")); - Called too early, causing RTThreadPreemtIsEnabled warning. */
    262269    return mod_info(&g_vgdrvSolarisModLinkage, pModInfo);
    263270}
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibIdc-solaris.cpp

    r68645 r68793  
    4141    ldi_handle_t hDev   = NULL;
    4242    ldi_ident_t  hIdent = ldi_ident_from_anon();
     43    /* Note! ldi_open_by_name actually opens the device and ends up creating a useless user session.
     44             Wonder if there is any way to detect ldi_open_by_name and do I/O controls via hDev... */
    4345    int rc = ldi_open_by_name(VBOXGUEST_DEVICE_NAME, FREAD, kcred, &hDev, hIdent);
    4446    ldi_ident_release(hIdent);
    4547    if (rc == 0)
    4648    {
    47         rc = VBoxGuestIDC(NULL, VBGL_IOCTL_IDC_DISCONNECT, &pReq->Hdr, sizeof(*pReq));
     49        rc = VBoxGuestIDC(NULL, VBGL_IOCTL_IDC_CONNECT, &pReq->Hdr, sizeof(*pReq));
    4850        if (RT_SUCCESS(rc) && RT_SUCCESS(pReq->Hdr.rc))
    4951        {
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette