These functions access information associated with property values and attributes. All memory allocated by these functions is managed by the library and must not be freed by the caller.
The di_prop_bytes() function returns the property data as a series of unsigned characters.
The di_prop_devt() function returns the dev_t with which this property is associated. If the value is DDI_DEV_T_NONE, the property is not associated with any specific minor node.
The di_prop_ints() function returns the property data as a series of integers.
The di_prop_int64() function returns the property data as a series of 64-bit integers.
The di_prop_name() function returns the name of the property.
The di_prop_strings() function returns the property data as a concatenation of null-terminated strings.
The di_prop_type() function returns the type of the property. The type determines the appropriate interface to access property values. The following is a list of possible types:
-
DI_PROP_TYPE_BOOLEAN
- There is no interface to call since there is no property data associated with boolean properties. The existence of the property defines a TRUE value.
-
DI_PROP_TYPE_INT
- Use di_prop_ints() to access property data.
-
DI_PROP_TYPE_INT64
- Use di_prop_int64() to access property data.
-
DI_PROP_TYPE_STRING
- Use di_prop_strings() to access property data.
-
DI_PROP_TYPE_BYTE
- Use di_prop_bytes() to access property data.
-
DI_PROP_TYPE_UNKNOWN
- Use di_prop_bytes() to access property data. Since the type of property is unknown, the caller is responsible for interpreting the contents of the data.
-
DI_PROP_TYPE_UNDEF_IT
- The property has been undefined by the driver. No property data is available.
|