Lines Matching defs:buffer

27  * @buf:	buffer to format to
28 * @len: length of buffer
136 * @from: The user space buffer to read from
276 * @src: source buffer (escaped)
277 * @dst: destination buffer (unescaped)
278 * @size: size of the destination buffer (0 to unlimit)
288 * destination buffer will always be NULL-terminated. Source string must be
310 * The amount of the characters processed to the destination buffer excluding
488 * string_escape_mem - quote characters in the given memory buffer
489 * @src: source buffer (unescaped)
490 * @isz: source buffer size
491 * @dst: destination buffer (escaped)
492 * @osz: destination buffer size
500 * The process of escaping byte buffer includes several parts. They are applied
515 * destination buffer will not be NULL-terminated, thus caller have to append
589 * output buffer.
668 char *buffer, *quoted;
671 buffer = kmalloc(PAGE_SIZE, GFP_KERNEL);
672 if (!buffer)
675 res = get_cmdline(task, buffer, PAGE_SIZE - 1);
676 buffer[res] = '\0';
679 while (--res >= 0 && buffer[res] == '\0')
684 if (buffer[i] == '\0')
685 buffer[i] = ' ';
688 quoted = kstrdup_quotable(buffer, gfp);
689 kfree(buffer);
827 * strscpy_pad() - Copy a C-string into a sized buffer
830 * @count: Size of destination buffer
832 * Copy the string, or as much of it as fits, into the dest buffer. The
834 * buffer is always %NUL terminated, unless it's zero-sized.
836 * If the source string is shorter than the destination buffer, zeros
837 * the tail of the destination buffer.
1017 * memcpy_and_pad - Copy one buffer to another with padding
1019 * @dest_len: The destination buffer size
1045 pr_emerg("detected buffer overflow in %s\n", name);