Lines Matching defs:buf
48 static int disconnect(const struct path *path, char *buf, char **name,
65 error = prepend(name, *name - buf, "/", 1);
67 error = prepend(name, *name - buf, disconnected,
77 * @buf: buffer to store path to (NOT NULL)
78 * @name: Returns - pointer for start of path name with in @buf (NOT NULL)
86 * a position in @buf
88 static int d_namespace_path(const struct path *path, char *buf, char **name,
99 res = dentry_path(path->dentry, buf, buflen);
102 *name = buf;
110 error = prepend(name, *name - buf, "/proc", 5);
113 error = disconnect(path, buf, name, flags,
122 res = __d_path(path, &root, buf, buflen);
125 res = d_absolute_path(path, buf, buflen);
136 *name = buf;
140 res = dentry_path_raw(path->dentry, buf, buflen);
143 *name = buf;
152 error = disconnect(path, buf, name, flags, disconnected);
172 strcpy(&buf[aa_g_path_max - 2], "/");