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

# LOCALONLY

Tells the system that the class or method runs locally in the driver extension’s process space.

```
#define LOCALONLY
```

## Discussion

DriverKit adds this macro to classes and methods that cannot be called remotely by the kernel or other processes. Instead, you call the methods locally from your driver’s process space. When applied to a class, the macro affects all methods of that class.

When calling the superclass implementation of a local-only method, call `super` like you normally would. Don’t use the [`SUPERDISPATCH`](/documentation/DriverKit/SUPERDISPATCH) macro to call the inherited implementation.

---

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)