VirtualBox

Changeset 10819 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jul 22, 2008 5:58:54 PM (16 years ago)
Author:
vboxsync
Message:

intnet: Use the IPRT handle table, validate against the session when looking up the handle, and do proper reference counting of the interfaces when resolving a handle. Fixed an issue in the interface destructure where anyone that could (very theorically) be sleeping on it wouldn't decrement the waiter count as we wanted them to.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/intnet.h

    r10806 r10819  
    828828 * @returns VBox status code.
    829829 * @param   pIntNet     The instance data.
    830  * @param   hIF         The interface handle.
     830 * @param   hIf         The interface handle.
     831 * @param   pSession        The caller's session.
    831832 * @param   ppRing0Buf  Where to store the address of the ring-3 mapping.
    832833 */
    833 INTNETR0DECL(int) INTNETR0IfGetRing0Buffer(PINTNET pIntNet, INTNETIFHANDLE hIf, PINTNETBUF *ppRing0Buf);
     834INTNETR0DECL(int) INTNETR0IfGetRing0Buffer(PINTNET pIntNet, INTNETIFHANDLE hIf, PSUPDRVSESSION pSession, PINTNETBUF *ppRing0Buf);
    834835
    835836/**
     
    838839 * @returns VBox status code.
    839840 * @param   pIntNet         The instance data.
    840  * @param   hIF             The interface handle.
     841 * @param   hIf             The interface handle.
    841842 * @param   pSession        The caller's session.
    842843 * @param   ppRing3Buf      Where to store the address of the ring-3 mapping.
     
    865866 * @returns VBox status code.
    866867 * @param   pIntNet     The instance data.
    867  * @param   hIF         The interface handle.
     868 * @param   hIf         The interface handle.
    868869 * @param   pSession    The caller's session.
    869870 * @param   pvFrame     Pointer to the frame. Optional, please don't use.
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