Changeset 17095 in vbox for trunk/src/VBox/HostDrivers/VBoxNetAdp/darwin/VBoxNetAdp-darwin.cpp
- Timestamp:
- Feb 24, 2009 8:08:20 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 43326
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxNetAdp/darwin/VBoxNetAdp-darwin.cpp
r16976 r17095 40 40 #include <iprt/semaphore.h> 41 41 #include <iprt/spinlock.h> 42 #include <iprt/string.h> 42 43 #include <iprt/uuid.h> 43 44 … … 120 121 DECLINLINE(ifnet_t) vboxNetAdpDarwinRetainIfNet(PVBOXNETADP pThis) 121 122 { 122 RTSPINLOCKTMP Tmp = RTSPINLOCKTMP_INITIALIZER;123 123 ifnet_t pIfNet = NULL; 124 124 125 RTSpinlockAcquire(pThis->hSpinlock, &Tmp); 126 if (pThis->enmState >= kVBoxNetAdpState_Connected) 127 ifnet_reference(pThis->u.s.pIface); 128 RTSpinlockRelease(pThis->hSpinlock, &Tmp); 125 ifnet_reference(pThis->u.s.pIface); 129 126 130 127 return pIfNet; … … 599 596 memcpy(LLADDR(&mac), pMACAddress->au8, mac.sdl_alen); 600 597 598 RTStrPrintf(pThis->szName, VBOXNETADP_MAX_NAME_LEN, "%s%d", VBOXNETADP_NAME, pThis->uUnit); 601 599 vboxNetAdpDarwinComposeUUID(pThis, &uuid); 602 600 Params.uniqueid = uuid.au8; … … 682 680 } 683 681 682 int vboxNetAdpOsInit(PVBOXNETADP pThis) 683 { 684 /* 685 * Init the darwin specific members. 686 */ 687 pThis->u.s.pIface = NULL; 688 pThis->u.s.hEvtDetached = NIL_RTSEMEVENT; 689 memset(pThis->u.s.aAttachedFamilies, 0, sizeof(pThis->u.s.aAttachedFamilies)); 690 691 return VINF_SUCCESS; 692 } 693 684 694 /** 685 695 * Start the kernel module.
Note:
See TracChangeset
for help on using the changeset viewer.