Lines Matching refs:devices
33 * information into /devices and /dev paths. It does this using interfaces to
34 * the kernel instance tree so that it can provide translations for devices
80 char *devices;
86 /* find the length of the devices path given major,instance */
98 if ((devices = (char *)malloc(mlen)) == NULL)
101 if (modctl(MODGETDEVFSPATH_MI, major, instance, len, devices) != 0) {
102 free(devices);
107 /* add ':<minot_name>' to the end of /devices path */
108 (void) strcat(devices, ":");
109 (void) strcat(devices, minor_name);
111 return (devices);
130 char *devices;
137 /* convert <driver><instance><minor_name> to /devices path */
138 devices = di_dim_path_devices(dim, drv_name, instance, minor_name);
139 if (devices == NULL)
142 /* convert /devices path to /dev path */
144 devices, DI_PRIMARY_LINK, (void *)&dev, di_dim_path_dev_callback);
145 free(devices);