Lines Matching refs:path
64 * If the path refers into the /dev filesystem, use a
100 finddev_readdir_alt(const char *path, finddevhdl_t *handlep)
108 if ((dir = opendir(path)) == NULL)
178 finddev_readdir_devfs(const char *path, finddevhdl_t *handlep)
197 rv = modctl(MODDEVREADDIR, path, strlen(path), NULL, &bufsiz);
210 rv = modctl(MODDEVREADDIR, path, strlen(path),
251 finddev_readdir(const char *path, finddevhdl_t *handlep)
253 if (GLOBAL_DEV_PATH(path)) {
254 return (finddev_readdir_devfs(path, handlep));
256 return (finddev_readdir_alt(path, handlep));
265 finddev_emptydir_alt(const char *path)
270 if ((dir = opendir(path)) == NULL)
297 finddev_emptydir_devfs(const char *path)
302 rv = modctl(MODDEVEMPTYDIR, path, strlen(path), &empty);
310 finddev_emptydir(const char *path)
312 if (GLOBAL_DEV_PATH(path)) {
313 return (finddev_emptydir_devfs(path));
315 return (finddev_emptydir_alt(path));
336 const char *path = NULL;
339 path = handle->paths[handle->curpath];
342 return (path);