VirtualBox

Changeset 21260 in vbox for trunk/src/VBox/Additions/linux


Ignore:
Timestamp:
Jul 6, 2009 3:28:14 PM (16 years ago)
Author:
vboxsync
Message:

VBGL: Renamed the internal HGCM functions and added a kernel/user mode indicator to HGCM the calls. The code is not yet using the indicator for anything.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/module/cmc.c

    r18316 r21260  
    5353    int rc = VINF_SUCCESS;
    5454
    55     /* this function can handle cancelled requests */
    5655    if (   VBOXGUEST_IOCTL_STRIP_SIZE(func)
    5756        == VBOXGUEST_IOCTL_STRIP_SIZE(VBOXGUEST_IOCTL_HGCM_CALL(0)))
    58         rc = VbglHGCMCall (data, vboxadd_hgcm_callback_interruptible, opaque, RT_INDEFINITE_WAIT);
    59     /* this function can handle cancelled requests */
     57        /* this function can handle cancelled requests */
     58        rc = VbglR0HGCMInternalCall (data, VBGLR0_HGCMCALL_F_KERNEL,
     59                                     vboxadd_hgcm_callback_interruptible, opaque, RT_INDEFINITE_WAIT);
    6060    else if (   VBOXGUEST_IOCTL_STRIP_SIZE(func)
    6161             == VBOXGUEST_IOCTL_STRIP_SIZE(VBOXGUEST_IOCTL_HGCM_CALL_TIMED(0)))
     
    6464        pCallInfo = (VBoxGuestHGCMCallInfoTimed *) data;
    6565        if (pCallInfo->fInterruptible)
    66             rc = VbglHGCMCall (&pCallInfo->info, vboxadd_hgcm_callback_interruptible,
    67                                opaque, pCallInfo->u32Timeout);
     66            rc = VbglR0HGCMInternalCall (&pCallInfo->info, VBGLR0_HGCMCALL_F_KERNEL,
     67                                         vboxadd_hgcm_callback_interruptible, opaque, pCallInfo->u32Timeout);
    6868        else
    69             rc = VbglHGCMCall (&pCallInfo->info, vboxadd_hgcm_callback,
    70                                opaque, pCallInfo->u32Timeout);
     69            rc = VbglR0HGCMInternalCall (&pCallInfo->info, VBGLR0_HGCMCALL_F_KERNEL,
     70                                         vboxadd_hgcm_callback, opaque, pCallInfo->u32Timeout);
    7171    }
    7272    else switch (func)
     
    7474        /* this function can NOT handle cancelled requests */
    7575        case VBOXGUEST_IOCTL_HGCM_CONNECT:
    76             rc = VbglHGCMConnect (data, vboxadd_hgcm_callback, opaque, RT_INDEFINITE_WAIT);
     76            rc = VbglR0HGCMInternalConnect (data, vboxadd_hgcm_callback, opaque, RT_INDEFINITE_WAIT);
    7777            break;
    7878
    7979        /* this function can NOT handle cancelled requests */
    8080        case VBOXGUEST_IOCTL_HGCM_DISCONNECT:
    81             rc = VbglHGCMDisconnect (data, vboxadd_hgcm_callback, opaque, RT_INDEFINITE_WAIT);
     81            rc = VbglR0HGCMInternalDisconnect (data, vboxadd_hgcm_callback, opaque, RT_INDEFINITE_WAIT);
    8282            break;
    8383
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