<!--
{
  "availability" : [
    "DriverKit: -",
    "iOS: -",
    "iPadOS: -",
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DriverKit",
  "identifier" : "/documentation/DriverKit/IMPL",
  "metadataVersion" : "0.1.0",
  "role" : "Macro",
  "symbol" : {
    "kind" : "Macro",
    "modules" : [
      "DriverKit"
    ],
    "preciseIdentifier" : "c:@macro@IMPL"
  },
  "title" : "IMPL"
}
-->

# IMPL

Tells the system that the superclass implementation of this method runs in the kernel.

```
#define IMPL(classname, name)
```

## Parameters

`classname`

The name of your custom class.

`name`

The name of the DriverKit method you are overriding in your custom subclass.

## Discussion

Use this macro when overriding any methods that are adorned directly (or indirectly via their class) with the [`IIG_KERNEL`](/documentation/DriverKit/IIG_KERNEL) macro. For example, use it to define the implementation of custom [`Start`](/documentation/DriverKit/IOService/Start) and [`Stop`](/documentation/DriverKit/IOService/Stop) methods in an [`IOService`](/documentation/DriverKit/IOService) subclass. The macro tells the compiler to add binding code between the method running locally in your driver extension’s process space and the superclass method running in the kernel. Don’t add this macro when overriding methods declared with the [`LOCAL`](/documentation/DriverKit/LOCAL) or [`LOCALONLY`](/documentation/DriverKit/LOCALONLY) macros.

When using the [`IMPL`](/documentation/DriverKit/IMPL) macro to define your method, don’t include the method parameters as part of your definition. The compiler automatically inserts the appropriate parameters using information from the superclass’ definition. For example, the following code shows how to declare a custom implementation of the [`Start`](/documentation/DriverKit/IOService/Start) method:

```objc
kern_return_t IMPL(MyCustomService, Start) 
{
   // Custom code here...
}
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)