<!--
{
  "documentType" : "article",
  "framework" : "HIDDriverKit",
  "identifier" : "/documentation/HIDDriverKit/match-criteria",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Match Criteria"
}
-->

# Match Criteria

Specify the criteria that the system uses to match your driver to a device.

## Discussion

When the system detects a new device, it looks for drivers that match the device’s features and capabilities. You specify the features and capabilities that your driver supports using the `IOKitPersonalities` key of your driver’s `Info.plist` file. The `IOKitPersonalities` key contains the array of driver personality dictionaries, the keys of which correspond to device-specific attributes. For example, you might specify the HID usage types that your driver supports.

The keys below are constants defined in the `IOHIDDeviceKeys.h` header file of HIDDriverKit. To match against a specific key, include the value of the key in the personality dictionary. For example, to match against `kIOHIDPrimaryUsageKey`, include the `PrimaryUsage` string in your `Info.plist` file.

## Topics

### Manufacturer Keys

  <doc://com.apple.documentation/documentation/iokit/kiohidtransportkey>

  <doc://com.apple.documentation/documentation/iokit/kiohidvendoridkey>

  <doc://com.apple.documentation/documentation/iokit/kiohidproductidkey>

  <doc://com.apple.documentation/documentation/iokit/kiohidversionnumberkey>

  <doc://com.apple.documentation/documentation/iokit/kiohidmanufacturerkey>

  <doc://com.apple.documentation/documentation/iokit/kiohidproductkey>

  <doc://com.apple.documentation/documentation/iokit/kiohidserialnumberkey>

### Location Keys

  <doc://com.apple.documentation/documentation/iokit/kiohidcountrycodekey>

  <doc://com.apple.documentation/documentation/iokit/kiohidlocationidkey>

### Usage Keys

  <doc://com.apple.documentation/documentation/iokit/kiohiddeviceusagekey>

  <doc://com.apple.documentation/documentation/iokit/kiohiddeviceusagepagekey>

  <doc://com.apple.documentation/documentation/iokit/kiohiddeviceusagepairskey>

  <doc://com.apple.documentation/documentation/iokit/kiohidprimaryusagekey>

  <doc://com.apple.documentation/documentation/iokit/kiohidprimaryusagepagekey>



---

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)