VirtualBox

Changeset 10038

Show
Ignore:
Timestamp:
06/30/08 19:39:05 (5 months ago)
Author:
vboxsync
Message:

We can safely call pfnSetActive without owning the lock I think, that way VBoxNetFlt may call into the kernel and turn of promiscuous mode without causing deadlocks.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/VBox/intnet.h

    r10037 r10038  
    444444     * the interface is idle before pfnDisconnectAndRelease is called. 
    445445     * 
     446     * A typical operation to performed by this method is to enable/disable promiscuous 
     447     * mode on the host network interface. (This is the reason we cannot call this when 
     448     * owning any semaphores.) 
     449     * 
    446450     * @returns The previous state. 
    447451     * 
     
    449453     * @param   fActive     True if the new state is 'active', false if the new state is 'suspended'. 
    450454     * 
    451      * @remarks Called while owning the network semaphore
     455     * @remarks Called while *not* owning any semaphores. Will not grab anything
    452456     */ 
    453457    DECLR0CALLBACKMEMBER(bool, pfnSetActive,(PINTNETTRUNKIFPORT pIfPort, bool fActive)); 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy