Lines Matching refs:buffer
314 read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos) in read_kcore() argument
356 if (copy_to_user(buffer, (char *)&ehdr + *fpos, tsz)) { in read_kcore()
361 buffer += tsz; in read_kcore()
401 if (copy_to_user(buffer, (char *)phdrs + *fpos - phdrs_offset, in read_kcore()
409 buffer += tsz; in read_kcore()
451 if (copy_to_user(buffer, notes + *fpos - notes_offset, tsz)) { in read_kcore()
458 buffer += tsz; in read_kcore()
486 if (clear_user(buffer, tsz)) { in read_kcore()
492 if (clear_user(buffer, tsz)) { in read_kcore()
499 if (copy_to_user(buffer, buf, tsz)) { in read_kcore()
505 if (copy_to_user(buffer, (char *)start, tsz)) { in read_kcore()
516 if (clear_user(buffer, tsz)) { in read_kcore()
521 if (copy_to_user(buffer, buf, tsz)) { in read_kcore()
527 if (clear_user(buffer, tsz)) { in read_kcore()
535 buffer += tsz; in read_kcore()