Lines Matching full:notes
308 static void append_kcore_note(char *notes, size_t *i, const char *name, in append_kcore_note() argument
312 struct elf_note *note = (struct elf_note *)¬es[*i]; in append_kcore_note()
318 memcpy(¬es[*i], name, note->n_namesz); in append_kcore_note()
320 memcpy(¬es[*i], desc, descsz); in append_kcore_note()
434 char *notes; in read_kcore_iter() local
440 notes = kzalloc(kcore_notes_len, GFP_KERNEL); in read_kcore_iter()
441 if (!notes) { in read_kcore_iter()
446 append_kcore_note(notes, &i, CORE_STR, NT_PRSTATUS, &prstatus, in read_kcore_iter()
448 append_kcore_note(notes, &i, CORE_STR, NT_PRPSINFO, &prpsinfo, in read_kcore_iter()
450 append_kcore_note(notes, &i, CORE_STR, NT_TASKSTRUCT, current, in read_kcore_iter()
459 append_kcore_note(notes, &i, VMCOREINFO_NOTE_NAME, 0, in read_kcore_iter()
465 if (copy_to_iter(notes + *fpos - notes_offset, tsz, iter) != tsz) { in read_kcore_iter()
466 kfree(notes); in read_kcore_iter()
470 kfree(notes); in read_kcore_iter()