VirtualBox

Ignore:
Timestamp:
Jul 3, 2007 2:54:26 PM (17 years ago)
Author:
vboxsync
Message:

First part of fix for udevd::chmod vs. VBoxSVC race on attach.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/USBProxyService.h

    r2981 r3392  
    8888     *
    8989     * @returns true if there is a state change.
    90      * @param   pDevice     The device in question.
    91      * @param   pUSBDevice  The USB device structure for the last enumeration.
    92      */
    93     virtual bool updateDeviceState (HostUSBDevice *pDevice, PUSBDEVICE pUSBDevice);
     90     * @param   aDevice     The device in question.
     91     * @param   aUSBDevice  The USB device structure for the last enumeration.
     92     */
     93    virtual bool updateDeviceState (HostUSBDevice *aDevice, PUSBDEVICE aUSBDevice);
     94
     95    /**
     96     * Add device notification hook for the OS specific code.
     97     *
     98     * @param   aDevice     The device in question.
     99     * @param   aUSBDevice  The USB device structure.
     100     */
     101    virtual void deviceAdded (HostUSBDevice *aDevice, PUSBDEVICE aUSBDevice);
     102
     103    /**
     104     * Remove device notification hook for the OS specific code.
     105     *
     106     * @param   aDevice     The device in question.
     107     */
     108    virtual void deviceRemoved (HostUSBDevice *aDevice);
    94109
    95110    /**
     
    182197
    183198public:
     199    /**
     200     * Free all the members of a USB device returned by getDevice().
     201     *
     202     * @param   pDevice     Pointer to the device.
     203     */
     204    static void freeDeviceMembers (PUSBDEVICE pDevice);
     205
    184206    /**
    185207     * Free one USB device returned by getDevice().
     
    282304    virtual int resetDevice (HostUSBDevice *aDevice);
    283305    virtual bool updateDeviceState (HostUSBDevice *aDevice, PUSBDEVICE aUSBDevice);
     306    virtual void deviceAdded (HostUSBDevice *aDevice, PUSBDEVICE aUSBDevice);
    284307
    285308protected:
     
    287310    virtual int interruptWait (void);
    288311    virtual PUSBDEVICE getDevices (void);
     312    int addDeviceToChain (PUSBDEVICE pDev, PUSBDEVICE *ppFirst, PUSBDEVICE **pppNext, int rc);
    289313
    290314private:
     
    299323    /** The root of usbfs. */
    300324    Utf8Str mUsbfsRoot;
     325    /** Number of 500ms polls left to do. See usbDeterminState for details. */
     326    unsigned mUdevPolls;
    301327};
    302328# endif /* __LINUX__ */
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