Struct apple_bundle::info_plist::kernel_and_drivers::DriverPersonalities[][src]

pub struct DriverPersonalities {
    pub kit_personalities: Option<KitPersonalities>,
}
Expand description

Driver Personalities

Fields

kit_personalities: Option<KitPersonalities>

One or more groups of attributes that tell the system about the devices your driver supports.

This key contains a dictionary of driver personalities, each of which specifies how to pair the driver to a device. Each key in the dictionary is a string you designate as the name of a specific personality, and the system doesn’t use your key names internally. The value of each key is a dictionary of attributes that describe the specific device to match with the driver. Thus, each key and dictionary combination represents a single personality of the driver. The system uses these personalities to match the driver to an attached device.

During the matching process, the system compares the attributes in each personality dictionary to data it obtained from the attached device. For example, if the personality dictionary includes the VendorID key, the system compares that key to the vendor information from the device. The system picks the driver that is compatible with the device and provides the best overall match. It then uses additional information from the personality dictionary to load and run the driver.

All personality dictionaries must include the following keys:

  • CFBundleIdentifier
  • IOProviderClass
  • IOClass

Include any of the following keys in your personality dictionary to customize the match criteria:

  • IOPropertyMatch
  • IONameMatch
  • IOResourceMatch
  • IOParentMatch
  • IOPathMatch
  • IOMatchCategory
  • Device-specific keys, such as DeviceUsagePairs, VendorID, or ProductID. See a specific IOService subclass for information about the keys it supports.

Include one of more of the following keys to specify how to load your driver’s code:

  • IOUserClass
  • IOUserServerName
  • IOUserClientClass

Use the following keys to further customize your driver’s behavior:

  • IOMatchDefer. Set the value of this key to true to defer the matching process until after kextd starts.
  • IOUserServerOneProcess. Set the value of this key to true to run your DriverKit services in one process. If the key is missing or its value is false, the system creates a separate process for each service.

Availability

  • macOS 10.0+

Framework

  • Kernel

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.