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