Lines Matching refs:device_name
41 char *device_name = 0, *custom_name = 0, *s, *temp; in make_device() local
73 device_name = getenv("DEVNAME"); in make_device()
75 if (!device_name) in make_device()
76 device_name = strrchr(path, '/') + 1; in make_device()
79 while ((temp = strchr(device_name, '!'))) { in make_device()
124 result=regexec(&match, device_name, 1, &off, 0); in make_device()
130 || off.rm_eo!=strlen(device_name)) in make_device()
195 device_name = NULL; in make_device()
224 if(device_name) { in make_device()
235 sprintf(toybuf, "/dev/%s", device_name); in make_device()
242 if (strchr(device_name, '/')) mkpath(toybuf); in make_device()
247 char *symlink_name = malloc(sizeof("/dev/") + strlen(device_name) + 1); in make_device()
250 sprintf(symlink_name, "/dev/%s", device_name); in make_device()