Lines Matching refs:dev
51 dev_t dev;
63 dev = statb.st_rdev;
64 if (modctl(MODSIZEOF_DEVID, dev, &len) != 0)
72 if (modctl(MODGETDEVID, dev, len, mydevid) != 0) {
89 dev_t dev;
102 dev = statb.st_rdev;
105 if (modctl(MODSIZEOF_MINORNAME, dev, spectype, &len) != 0)
113 if (modctl(MODGETMINORNAME, dev, spectype, len, myminor_name) != 0) {
135 dev_t dev;
141 dev = statb.st_rdev;
143 dev = NODEV;
158 nl->nl_dev = dev;
172 /* di_devlink callback to add a /dev entry to nmlist */
190 * Resolve /dev names to DI_PRIMARY_LINK, DI_SECONDARY_LINK, or both.
209 * with names that resolve into /devices or /dev depending on search_path.
226 int dev;
242 /* verify valid search path starts with "/devices" or "/dev" */
245 dev = 0;
246 else if ((strcmp(search_path, "/dev") == 0) ||
247 (strncmp(search_path, "/dev/", 5) == 0))
248 dev = 1;
270 * initialize for /devices path to /dev path translation. To reduce
273 if (dev) {
291 if (dev) {
292 /* add /dev entries */
331 rl->dev = nl->nl_dev;
334 rl->dev = NODEV;