Lines Matching refs:path
147 static int fill_kobj_path(struct kobject *kobj, char *path, int length)
158 memcpy(path + length, kobject_name(parent), cur);
159 *(path + --length) = '/';
162 pr_debug("kobject: '%s' (%p): %s: path = '%s'\n", kobject_name(kobj),
163 kobj, __func__, path);
169 * kobject_get_path() - Allocate memory and fill in the path for @kobj.
170 * @kobj: kobject in question, with which to build the path
171 * @gfp_mask: the allocation type used to allocate the path
177 char *path;
184 path = kzalloc(len, gfp_mask);
185 if (!path)
187 if (fill_kobj_path(kobj, path, len)) {
188 kfree(path);
192 return path;
579 /* old object path */