Lines Matching refs:buffer

11 static int prepend(char **buffer, int *buflen, const char *str, int namelen)
16 *buffer -= namelen;
17 memcpy(*buffer, str, namelen);
22 * prepend_name - prepend a pathname in front of current buffer pointer
23 * @buffer: buffer pointer
24 * @buflen: allocated length of the buffer
33 * retry it again when a d_move() does happen. So any garbage in the buffer
38 static int prepend_name(char **buffer, int *buflen, const struct qstr *name)
47 p = *buffer -= dlen + 1;
59 * prepend_path - Prepend path string to a buffer
62 * @buffer: pointer to the end of the buffer
63 * @buflen: pointer to buffer length
77 char **buffer, int *buflen)
93 bptr = *buffer;
109 bptr = *buffer;
153 if (error >= 0 && bptr == *buffer) {
159 *buffer = bptr;
168 * @buf: buffer to return value in
169 * @buflen: buffer length
173 * Returns a pointer into the buffer or an error code if the
231 static int prepend_unreachable(char **buffer, int *buflen)
233 return prepend(buffer, buflen, "(unreachable)", 13);
249 * @buf: buffer to return value in
250 * @buflen: buffer length
255 * Returns a pointer into the buffer or an error code if the path was
257 * in buffer, to use the name! The implementation often starts at an offset
258 * into the buffer, and may leave 0 bytes at the start.
297 char *dynamic_dname(struct dentry *dentry, char *buffer, int buflen,
311 buffer += buflen - sz;
312 return memcpy(buffer, temp, sz);
315 char *simple_dname(struct dentry *dentry, char *buffer, int buflen)
317 char *end = buffer + buflen;
327 * Write full pathname from the root of the filesystem into the buffer.
414 * returns the length of the buffer filled (which