Lines Matching refs: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()
435 char *notes; in read_kcore_iter() local
441 notes = kzalloc(notes_len, GFP_KERNEL); in read_kcore_iter()
442 if (!notes) { in read_kcore_iter()
447 append_kcore_note(notes, &i, CORE_STR, NT_PRSTATUS, &prstatus, in read_kcore_iter()
449 append_kcore_note(notes, &i, CORE_STR, NT_PRPSINFO, &prpsinfo, in read_kcore_iter()
451 append_kcore_note(notes, &i, CORE_STR, NT_TASKSTRUCT, current, in read_kcore_iter()
460 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()