Lines Matching refs:devices
35 * information into /devices and /dev paths. It does this using interfaces to
36 * the kernel instance tree so that it can provide translations for devices
82 char *devices;
88 /* find the length of the devices path given major,instance */
100 if ((devices = (char *)malloc(mlen)) == NULL)
103 if (modctl(MODGETDEVFSPATH_MI, major, instance, len, devices) != 0) {
104 free(devices);
109 /* add ':<minot_name>' to the end of /devices path */
110 (void) strcat(devices, ":");
111 (void) strcat(devices, minor_name);
113 return (devices);
132 char *devices;
139 /* convert <driver><instance><minor_name> to /devices path */
140 devices = di_dim_path_devices(dim, drv_name, instance, minor_name);
141 if (devices == NULL)
144 /* convert /devices path to /dev path */
146 devices, DI_PRIMARY_LINK, (void *)&dev, di_dim_path_dev_callback);
147 free(devices);