Lines Matching refs:device
61 char device[UTIL_PATH_SIZE];
68 len = readlinkat(dirfd(dir), ent->d_name, device, sizeof(device));
69 if (len <= 0 || len == (ssize_t)sizeof(device))
71 device[len] = '\0';
73 dev = udev_device_new_from_device_id(udev, device);
139 char device[UTIL_NAME_SIZE];
146 len = readlink(filename, device, sizeof(device));
147 if (len <= 0 || (size_t)len == sizeof(device))
149 device[len] = '\0';
151 return udev_device_new_from_device_id(udev, device);