Lines Matching defs:buffer
30 static int prepend(char **buffer, int buflen, const char *str, int namelen)
35 *buffer -= namelen;
36 memcpy(*buffer, str, namelen);
45 * @buf: buffer to store path to (NOT NULL)
152 * get_name_to_buffer - get the pathname to a buffer ensure dir / is appended
155 * @buffer: buffer to put name in (NOT NULL)
156 * @size: size of buffer
157 * @name: Returns - contains position of path name in @buffer (NOT NULL)
161 static int get_name_to_buffer(struct path *path, int flags, char *buffer,
165 int error = d_namespace_path(path, buffer, size - adjust, name, flags);
172 strcpy(&buffer[size - 2], "/");
192 * @buffer: buffer that aa_get_name() allocated (NOT NULL)
197 * from the beginning of the buffer), or NULL. If there is an error @name
207 int aa_path_name(struct path *path, int flags, char **buffer, const char **name,
215 *buffer = NULL;
232 *buffer = buf;