Lines Matching refs:dir
45 char *dir; member
66 if (devfs_pathpath(dle->dir, path) != 0) { in devfs_dir_find()
77 devfs_dir_findent_locked(const char *dir) in devfs_dir_findent_locked() argument
84 if (strcmp(dir, dle->dir) == 0) in devfs_dir_findent_locked()
92 devfs_dir_ref(const char *dir) in devfs_dir_ref() argument
96 if (*dir == '\0') in devfs_dir_ref()
100 dle_new->dir = strdup(dir, M_DEVFS4); in devfs_dir_ref()
104 dle = devfs_dir_findent_locked(dir); in devfs_dir_ref()
108 free(dle_new->dir, M_DEVFS4); in devfs_dir_ref()
128 devfs_dir_unref(const char *dir) in devfs_dir_unref() argument
132 if (*dir == '\0') in devfs_dir_unref()
136 dle = devfs_dir_findent_locked(dir); in devfs_dir_unref()
137 KASSERT(dle != NULL, ("devfs_dir_unref: dir %s not referenced", dir)); in devfs_dir_unref()
143 free(dle->dir, M_DEVFS4); in devfs_dir_unref()