Lines Matching defs:name
44 * d_namespace_path - lookup a name associated with a given path
48 * @name: Returns - pointer for start of path name with in @buf (NOT NULL)
51 * Handle path name lookup.
54 * When no error the path name is returned in @name which points to
58 char **name, int flags)
80 *name = res;
86 *name = buf;
119 strncmp(*name, "/sys/", 5) == 0) {
123 error = prepend(name, *name - buf, "/proc", 5);
133 *name = res + 1;
145 * @path: path to get name for (NOT NULL)
147 * @buffer: buffer to put name in (NOT NULL)
149 * @name: Returns - contains position of path name in @buffer (NOT NULL)
154 int size, char **name)
157 int error = d_namespace_path(path, buffer, size - adjust, name, flags);
159 if (!error && (flags & PATH_IS_DIR) && (*name)[1] != '\0')
172 * @flags: flags controlling path name generation
174 * @name: Returns - the generated path name if !error (NOT NULL)
176 * @name is a pointer to the beginning of the pathname (which usually differs
177 * from the beginning of the buffer), or NULL. If there is an error @name
178 * may contain a partial or invalid name that can be used for audit purposes,
185 * Returns: %0 else error code if could retrieve name
187 int aa_get_name(struct path *path, int flags, char **buffer, const char **name)
193 *name = NULL;
211 *name = str;