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§
Source§impl Clone for DriverPersonalities
impl Clone for DriverPersonalities
Source§fn clone(&self) -> DriverPersonalities
fn clone(&self) -> DriverPersonalities
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DriverPersonalities
impl Debug for DriverPersonalities
Source§impl Default for DriverPersonalities
impl Default for DriverPersonalities
Source§fn default() -> DriverPersonalities
fn default() -> DriverPersonalities
Source§impl<'de> Deserialize<'de> for DriverPersonalities
impl<'de> Deserialize<'de> for DriverPersonalities
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for DriverPersonalities
impl PartialEq for DriverPersonalities
Source§impl Serialize for DriverPersonalities
impl Serialize for DriverPersonalities
impl Eq for DriverPersonalities
impl StructuralPartialEq for DriverPersonalities
Auto Trait Implementations§
impl Freeze for DriverPersonalities
impl RefUnwindSafe for DriverPersonalities
impl Send for DriverPersonalities
impl Sync for DriverPersonalities
impl Unpin for DriverPersonalities
impl UnwindSafe for DriverPersonalities
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.