---
title: terminateDrivers
framework: Kernel
role: pseudoSymbol
path: kernel/iocatalogue/1811385-terminatedrivers
---

# terminateDrivers

Terminates all instances of a driver which match the contents of the matching dictionary. Does not unload module.

## Declaration

```occ
IOReturn terminateDrivers(
 OSDictionary *matching ); 
```

## Parameters

- `matching`: A dictionary whose keys and values are used for matching personalities in the database. For example, a matching dictionary containing a 'IOProviderClass' key with the value 'IOPCIDevice' will cause termination for all instances whose personalities have the key 'IOProviderClass' equal to 'IOPCIDevice'.

## See Also

### Miscellaneous

- [addDrivers](kernel/iocatalogue/1811204-adddrivers.md)
- [findDrivers(IOService *, SInt32 *)](kernel/iocatalogue/1811225-finddrivers.md)
- [findDrivers(OSDictionary *, SInt32 *)](kernel/iocatalogue/1811242-finddrivers.md)
- [free](kernel/iocatalogue/1811255-free.md)
- [getGenerationCount](kernel/iocatalogue/1811265-getgenerationcount.md)
- [init](kernel/iocatalogue/1811279-init.md)
- [initialize](kernel/iocatalogue/1811287-initialize.md)
- [isModuleLoaded](kernel/iocatalogue/1811295-ismoduleloaded.md)
- [isModuleLoaded(const char *)](kernel/iocatalogue/1811303-ismoduleloaded.md)
- [isModuleLoaded(OSString *)](kernel/iocatalogue/1811312-ismoduleloaded.md)
- [moduleHasLoaded(const char *)](kernel/iocatalogue/1811319-modulehasloaded.md)
- [moduleHasLoaded(OSString *)](kernel/iocatalogue/1811324-modulehasloaded.md)
- [removeDrivers](kernel/iocatalogue/1811332-removedrivers.md)
- [reset](kernel/iocatalogue/1811342-reset.md)
- [resetAndAddDrivers](kernel/iocatalogue/1811349-resetandadddrivers.md)
- [serialize](kernel/iocatalogue/1811365-serialize.md)
- [startMatching](kernel/iocatalogue/1811371-startmatching.md)
- [terminateDriversForModule(const char *, bool)](kernel/iocatalogue/1811392-terminatedriversformodule.md)
- [terminateDriversForModule(OSString *, bool)](kernel/iocatalogue/1811401-terminatedriversformodule.md)
- [unloadModule](kernel/iocatalogue/1811417-unloadmodule.md)
