Lines Matching refs:path
124 static int fill_kobj_path(const struct kobject *kobj, char *path, int length)
135 memcpy(path + length, kobject_name(parent), cur);
136 *(path + --length) = '/';
139 pr_debug("'%s' (%p): %s: path = '%s'\n", kobject_name(kobj),
140 kobj, __func__, path);
146 * kobject_get_path() - Allocate memory and fill in the path for @kobj.
147 * @kobj: kobject in question, with which to build the path
148 * @gfp_mask: the allocation type used to allocate the path
154 char *path;
161 path = kzalloc(len, gfp_mask);
162 if (!path)
164 if (fill_kobj_path(kobj, path, len)) {
165 kfree(path);
169 return path;
555 /* old object path */