- Timestamp:
- Aug 24, 2010 7:06:56 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/solaris/USBLib-solaris.cpp
r31898 r31939 101 101 102 102 ASMAtomicIncU32(&g_cUsers); 103 #ifdef VBOX_WITH_NEW_USB_CODE_ON_SOLARIS104 103 /* 105 104 * Check the USBMonitor version. … … 131 130 return rc; 132 131 } 133 #endif134 132 135 133 return VINF_SUCCESS; … … 192 190 193 191 194 #ifdef VBOX_WITH_NEW_USB_CODE_ON_SOLARIS195 192 USBLIB_DECL(int) USBLibGetClientInfo(char *pszDeviceIdent, char **ppszClientPath, int *pInstance) 196 193 { … … 221 218 return rc; 222 219 } 223 224 #else225 226 USBLIB_DECL(int) USBLibDeviceInstance(char *pszDevicePath, int *pInstance)227 {228 LogFlow((USBLIBR3 ":USBLibDeviceInstance pszDevicePath=%s pInstance=%p\n", pszDevicePath, pInstance));229 230 size_t cbReq = sizeof(VBOXUSBREQ_DEVICE_INSTANCE) + strlen(pszDevicePath);231 VBOXUSBREQ_DEVICE_INSTANCE *pReq = (VBOXUSBREQ_DEVICE_INSTANCE *)RTMemTmpAllocZ(cbReq);232 if (RT_UNLIKELY(!pReq))233 return VERR_NO_MEMORY;234 235 pReq->pInstance = pInstance;236 strncpy(pReq->szDevicePath, pszDevicePath, strlen(pszDevicePath));237 238 int rc = usblibDoIOCtl(VBOXUSBMON_IOCTL_DEVICE_INSTANCE, pReq, cbReq);239 if (RT_FAILURE(rc))240 LogRel((USBLIBR3 ":VBOXUSBMON_IOCTL_DEVICE_INSTANCE failed! rc=%Rrc\n", rc));241 242 RTMemFree(pReq);243 return rc;244 }245 246 #endif247 220 248 221
Note:
See TracChangeset
for help on using the changeset viewer.