Lines Matching defs:instance
76 #include <sys/instance.h>
3227 * `matching' instance.
4766 * userland, so we print its full name together with the instance
5186 * is the instance. Drivers that do not have 1:1 mapping must implement
5194 int instance;
5199 instance = getminor((dev_t)(uintptr_t)arg);
5200 *result = (void *)(uintptr_t)instance;
5572 /* add the device class, driver name and instance attributes */
6548 * over time. An attached device instance cannot rely on the major
6553 * the life of the instance.
6777 * that the path is always in the instance tree. The one exception
6787 int instance;
6803 /* extract instance from devt (getinfo(9E) DDI_INFO_DEVT2INSTANCE). */
6804 if ((instance = dev_to_instance(devt)) == -1)
6807 /* reconstruct the path given the major/instance */
6808 if (e_ddi_majorinstance_to_path(major, instance, path) != DDI_SUCCESS)
6838 * Given a major number and an instance, return the path.
6842 e_ddi_majorinstance_to_path(major_t major, int instance, char *path)
6847 if ((major >= devcnt) || (instance == -1)) {
6852 /* look for the major/instance in the instance tree */
6853 if (e_ddi_instance_majorinstance_to_path(major, instance,
6860 * Not in instance tree, find the instance on the per driver list and
6861 * construct path to instance via ddi_pathname(). This is how paths
6868 /* Skip if instance does not match. */
6869 if (DEVI(dip)->devi_instance != instance)
6899 * In all cases except GLD v0 drivers, the ppa == instance.
7490 * devinfo ptr for an underlying sd instance based on a did