Lines Matching refs:device
5 * Implements root device discovery via sysfs with optional bells and whistles.
34 /* Encode the root device structuring here for Chromium OS */
86 * a block device to find sub-devices (partitions) for dev.
87 * If dev == 0, the name fo the first device in the directory will be returned.
88 * Returns the device's name in "name" */
160 /* Determine path to block device number */
266 * may be the original device or the name of the slave.
268 * Because slave and device may point to the same data,
273 const char *device, const char *search) {
282 * With stacked device mappers, we have to chain through all the levels
283 * and find the last device. For example, verity can be stacked on bootcache
286 if (slave != device)
287 strncpy(slave, device, size);
291 if (len != strlen(device) + strlen(search) + 8) {
292 warnx("rootdev_get_device_slave: device name too long");
345 int rootdev_get_path(char *path, size_t size, const char *device,
352 if (!path || !size || !device)
355 path_len = snprintf(path, size, "%s/%s", dev_path, device);
356 if (path_len != strlen(dev_path) + 1 + strlen(device))
360 // device. We don't do this currently as OEMs can add custom SELinux rules