Lines Matching full:notes
295 static void append_kcore_note(char *notes, size_t *i, const char *name, in append_kcore_note() argument
299 struct elf_note *note = (struct elf_note *)¬es[*i]; in append_kcore_note()
305 memcpy(¬es[*i], name, note->n_namesz); in append_kcore_note()
307 memcpy(¬es[*i], desc, descsz); in append_kcore_note()
422 char *notes; in read_kcore() local
428 notes = kzalloc(notes_len, GFP_KERNEL); in read_kcore()
429 if (!notes) { in read_kcore()
434 append_kcore_note(notes, &i, CORE_STR, NT_PRSTATUS, &prstatus, in read_kcore()
436 append_kcore_note(notes, &i, CORE_STR, NT_PRPSINFO, &prpsinfo, in read_kcore()
438 append_kcore_note(notes, &i, CORE_STR, NT_TASKSTRUCT, current, in read_kcore()
447 append_kcore_note(notes, &i, VMCOREINFO_NOTE_NAME, 0, in read_kcore()
452 if (copy_to_user(buffer, notes + *fpos - notes_offset, tsz)) { in read_kcore()
453 kfree(notes); in read_kcore()
457 kfree(notes); in read_kcore()