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

# IIG_KERNEL

Tells the system that the class or method runs inside the kernel.

```
#define IIG_KERNEL
```

## Discussion

DriverKit adds this macro to methods that must run inside the kernel’s process space. When overriding a method tagged with this macro, you must define your method using the [`IMPL`](/documentation/DriverKit/IMPL) macro, which creates the necessary binding to bridge from your driver’s process space to the kernel implementation. When applied to a class, this macro affects all methods of the class.

Don’t apply this macro to your own classes and methods.

---

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)