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 the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]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 !=.
Auto Trait Implementations
impl RefUnwindSafe for DriverPersonalitiesimpl Send for DriverPersonalitiesimpl Sync for DriverPersonalitiesimpl Unpin for DriverPersonalitiesimpl UnwindSafe for DriverPersonalitiesBlanket Implementations
Mutably borrows from an owned value. Read more