VirtualBox

Ignore:
Timestamp:
Mar 13, 2009 5:42:43 PM (16 years ago)
Author:
vboxsync
Message:

Additions/linux/vboxadd: refactored the module initialisation code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/module/vboxmod.h

    r14218 r17853  
    2727#include <iprt/asm.h>
    2828
     29#define VBOXADD_NAME "vboxadd"
     30
    2931typedef struct VBoxDevice VBoxDevice;
    3032struct VBoxDevice
    3133{
    32     /** the device name */
    33     char name[128];
    3434    /** file node minor code */
    3535    unsigned minor;
     
    7777DECLVBGL (int) vboxadd_cmc_call (void *opaque, uint32_t func, void *data);
    7878
    79 #if 0
    80 /**
    81  * This IOCTL wrapper allows the guest to make an HGCM call from user space.  The
    82  * OS-independant part of the Guest Additions already contain code for making an
    83  * HGCM call from the guest, but this code assumes that the call is made from the
    84  * kernel's address space.  So before calling it, we have to copy all parameters
    85  * to the HGCM call from user space to kernel space and reconstruct the structures
    86  * passed to the call (which include pointers to other memory) inside the kernel's
    87  * address space.
    88  *
    89  * @returns   0 on success or Linux error code on failure
    90  * @param arg User space pointer to the call data structure
    91  */
    92 extern int vbox_ioctl_hgcm_call(unsigned long arg, VBoxDevice *vboxDev);
    93 
    94 /**
    95  * This call is similar to vbox_ioctl_hgcm_call, but for the _TIMEOUT variant
    96  * of the ioctl.
    97  *
    98  * @returns   0 on success or Linux error code on failure
    99  * @param arg      User space pointer to the call data structure
    100  */
    101 extern int vbox_ioctl_hgcm_call_timeout(unsigned long arg, VBoxDevice *vboxDev);
    102 #endif
    103 
    10479#endif /* !VBOXMOD_H */
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