Lines Matching defs:instance
77 #include <sys/instance.h>
3228 * `matching' instance.
4767 * userland, so we print its full name together with the instance
5187 * is the instance. Drivers that do not have 1:1 mapping must implement
5195 int instance;
5200 instance = getminor((dev_t)(uintptr_t)arg);
5201 *result = (void *)(uintptr_t)instance;
5573 /* add the device class, driver name and instance attributes */
6549 * over time. An attached device instance cannot rely on the major
6554 * the life of the instance.
6778 * that the path is always in the instance tree. The one exception
6788 int instance;
6804 /* extract instance from devt (getinfo(9E) DDI_INFO_DEVT2INSTANCE). */
6805 if ((instance = dev_to_instance(devt)) == -1)
6808 /* reconstruct the path given the major/instance */
6809 if (e_ddi_majorinstance_to_path(major, instance, path) != DDI_SUCCESS)
6839 * Given a major number and an instance, return the path.
6843 e_ddi_majorinstance_to_path(major_t major, int instance, char *path)
6848 if ((major >= devcnt) || (instance == -1)) {
6853 /* look for the major/instance in the instance tree */
6854 if (e_ddi_instance_majorinstance_to_path(major, instance,
6861 * Not in instance tree, find the instance on the per driver list and
6862 * construct path to instance via ddi_pathname(). This is how paths
6869 /* Skip if instance does not match. */
6870 if (DEVI(dip)->devi_instance != instance)
6900 * In all cases except GLD v0 drivers, the ppa == instance.
7491 * devinfo ptr for an underlying sd instance based on a did