Lines Matching defs:buffer
26 * @buf: buffer to format to
27 * @len: length of buffer
231 * @src: source buffer (escaped)
232 * @dst: destination buffer (unescaped)
233 * @size: size of the destination buffer (0 to unlimit)
243 * destination buffer will always be NULL-terminated. Source string must be
265 * The amount of the characters processed to the destination buffer excluding
440 * string_escape_mem - quote characters in the given memory buffer
441 * @src: source buffer (unescaped)
442 * @isz: source buffer size
443 * @dst: destination buffer (escaped)
444 * @osz: destination buffer size
452 * The process of escaping byte buffer includes several parts. They are applied
465 * destination buffer will not be NULL-terminated, thus caller have to append
516 * output buffer.
599 char *buffer, *quoted;
602 buffer = kmalloc(PAGE_SIZE, GFP_KERNEL);
603 if (!buffer)
606 res = get_cmdline(task, buffer, PAGE_SIZE - 1);
607 buffer[res] = '\0';
610 while (--res >= 0 && buffer[res] == '\0')
615 if (buffer[i] == '\0')
616 buffer[i] = ' ';
619 quoted = kstrdup_quotable(buffer, gfp);
620 kfree(buffer);