Lines Matching full:notes
294 static void append_kcore_note(char *notes, size_t *i, const char *name, in append_kcore_note() argument
298 struct elf_note *note = (struct elf_note *)¬es[*i]; in append_kcore_note()
304 memcpy(¬es[*i], name, note->n_namesz); in append_kcore_note()
306 memcpy(¬es[*i], desc, descsz); in append_kcore_note()
421 char *notes; in read_kcore_iter() local
427 notes = kzalloc(notes_len, GFP_KERNEL); in read_kcore_iter()
428 if (!notes) { in read_kcore_iter()
433 append_kcore_note(notes, &i, CORE_STR, NT_PRSTATUS, &prstatus, in read_kcore_iter()
435 append_kcore_note(notes, &i, CORE_STR, NT_PRPSINFO, &prpsinfo, in read_kcore_iter()
437 append_kcore_note(notes, &i, CORE_STR, NT_TASKSTRUCT, current, in read_kcore_iter()
446 append_kcore_note(notes, &i, VMCOREINFO_NOTE_NAME, 0, in read_kcore_iter()
451 if (copy_to_iter(notes + *fpos - notes_offset, tsz, iter) != tsz) { in read_kcore_iter()
452 kfree(notes); in read_kcore_iter()
456 kfree(notes); in read_kcore_iter()