Lines Matching refs:buffer

38 /* Stores the pointer to the buffer containing kernel elf core headers. */
245 /* Leave now if buffer filled already */
282 /* Leave now if buffer filled already */
299 static ssize_t __read_vmcore(char *buffer, size_t buflen, loff_t *fpos,
317 if (copy_to(buffer, elfcorebuf + *fpos, tsz, userbuf))
321 buffer += tsz;
324 /* leave now if filled buffer already */
334 * other elf notes may not fill the elf notes buffer
348 if (vmcoredd_copy_dumps(buffer, start, tsz, userbuf))
353 buffer += tsz;
356 /* leave now if filled buffer already */
365 if (copy_to(buffer, kaddr, tsz, userbuf))
370 buffer += tsz;
373 /* leave now if filled buffer already */
384 tmp = read_from_oldmem(buffer, tsz, &start,
390 buffer += tsz;
393 /* leave now if filled buffer already */
402 static ssize_t read_vmcore(struct file *file, char __user *buffer,
405 return __read_vmcore((__force char *) buffer, buflen, fpos, 1);
452 * vmcore_alloc_buf - allocate buffer in vmalloc memory
453 * @sizez: size of buffer
456 * the buffer to user-space by means of remap_vmalloc_range().
459 * disabled and there's no need to allow users to mmap the buffer.
595 * other elf notes may not fill the elf notes buffer
621 /* leave now if filled buffer already */
758 * @nr_ptnote: buffer for the number of PT_NOTE program headers
759 * @sz_ptnote: buffer for size of unique PT_NOTE program header
790 * copy_notes_elf64 - copy ELF note segments in a given buffer
793 * @notes_buf: buffer into which ELF note segments are copied
796 * into the buffer @notes_buf in the 2nd kernel. It is assumed that
797 * size of the buffer @notes_buf is equal to or larger than sum of the
949 * @nr_ptnote: buffer for the number of PT_NOTE program headers
950 * @sz_ptnote: buffer for size of unique PT_NOTE program header
981 * copy_notes_elf32 - copy ELF note segments in a given buffer
984 * @notes_buf: buffer into which ELF note segments are copied
987 * into the buffer @notes_buf in the 2nd kernel. It is assumed that
988 * size of the buffer @notes_buf is equal to or larger than sum of the
1341 * beginning of the dump's buffer.
1342 * @buf: Output buffer where the note is written
1346 * Fills beginning of the dump's buffer with vmcore device dump header.
1449 * vmcore_add_device_dump - Add a buffer containing device dump to vmcore
1452 * Allocate a buffer and invoke the calling driver's dump collect routine.
1453 * Write Elf note at the beginning of the buffer to indicate vmcore device
1478 /* Keep size of the buffer page aligned so that it can be mmaped */
1482 /* Allocate buffer for driver's to write their dumps */