Lines Matching refs:notes
295 static void append_kcore_note(char *notes, size_t *i, const char *name,
299 struct elf_note *note = (struct elf_note *)¬es[*i];
305 memcpy(¬es[*i], name, note->n_namesz);
307 memcpy(¬es[*i], desc, descsz);
419 char *notes;
425 notes = kzalloc(notes_len, GFP_KERNEL);
426 if (!notes) {
431 append_kcore_note(notes, &i, CORE_STR, NT_PRSTATUS, &prstatus,
433 append_kcore_note(notes, &i, CORE_STR, NT_PRPSINFO, &prpsinfo,
435 append_kcore_note(notes, &i, CORE_STR, NT_TASKSTRUCT, current,
444 append_kcore_note(notes, &i, VMCOREINFO_NOTE_NAME, 0,
449 if (copy_to_user(buffer, notes + *fpos - notes_offset, tsz)) {
450 kfree(notes);
454 kfree(notes);