Changeset 87700 in vbox for trunk/src/VBox/HostDrivers/Support/linux
- Timestamp:
- Feb 10, 2021 8:21:04 PM (4 years ago)
- Location:
- trunk/src/VBox/HostDrivers/Support/linux
- Files:
-
- 5 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c
r85776 r87700 751 751 return supdrvIDC(uReq, &g_DevExt, pSession, pReq); 752 752 } 753 754 753 EXPORT_SYMBOL(SUPDrvLinuxIDC); 754 755 756 /** 757 * Used by native wrapper modules, forwarding to supdrvLdrRegisterWrappedModule 758 * with device extension prepended to the argument list. 759 */ 760 SUPR0DECL(int) SUPDrvLinuxLdrRegisterWrappedModule(PCSUPLDRWRAPPEDMODULE pWrappedModInfo, void *pvLnxModule, void **phMod) 761 { 762 AssertPtrReturn(pvLnxModule, VERR_INVALID_POINTER); 763 return supdrvLdrRegisterWrappedModule(&g_DevExt, pWrappedModInfo, pvLnxModule, phMod); 764 } 765 EXPORT_SYMBOL(SUPDrvLinuxLdrRegisterWrappedModule); 766 767 768 /** 769 * Used by native wrapper modules, forwarding to supdrvLdrDeregisterWrappedModule 770 * with device extension prepended to the argument list. 771 */ 772 SUPR0DECL(int) SUPDrvLinuxLdrDeregisterWrappedModule(PCSUPLDRWRAPPEDMODULE pWrappedModInfo, void **phMod) 773 { 774 return supdrvLdrDeregisterWrappedModule(&g_DevExt, pWrappedModInfo, phMod); 775 } 776 EXPORT_SYMBOL(SUPDrvLinuxLdrDeregisterWrappedModule); 755 777 756 778 … … 1244 1266 1245 1267 1268 void VBOXCALL supdrvOSLdrRetainWrapperModule(PSUPDRVDEVEXT pDevExt, PSUPDRVLDRIMAGE pImage) 1269 { 1270 struct module *pLnxMod = (struct module *)pImage->pvWrappedNative; 1271 Assert(!pImage->fLnxWrapperRef); 1272 AssertReturnVoid(pLnxMod); 1273 pImage->fLnxWrapperRef = try_module_get(pLnxMod); 1274 RT_NOREF(pDevExt); 1275 } 1276 1277 1278 void VBOXCALL supdrvOSLdrReleaseWrapperModule(PSUPDRVDEVEXT pDevExt, PSUPDRVLDRIMAGE pImage) 1279 { 1280 if (pImage->fLnxWrapperRef) 1281 { 1282 struct module *pLnxMod = (struct module *)pImage->pvWrappedNative; 1283 pImage->fLnxWrapperRef = false; 1284 module_put(pLnxMod); 1285 } 1286 RT_NOREF(pDevExt); 1287 } 1288 1289 1246 1290 #ifdef SUPDRV_WITH_MSR_PROBER 1247 1291 … … 1412 1456 return VINF_SUCCESS; 1413 1457 } 1458 SUPR0_EXPORT_SYMBOL(SUPR0HCPhysToVirt); 1414 1459 1415 1460 … … 1430 1475 return 0; 1431 1476 } 1477 SUPR0_EXPORT_SYMBOL(SUPR0Printf); 1432 1478 1433 1479 … … 1449 1495 return fFlags; 1450 1496 } 1497 SUPR0_EXPORT_SYMBOL(SUPR0GetKernelFeatures); 1451 1498 1452 1499
Note:
See TracChangeset
for help on using the changeset viewer.