Lines Matching full:note
308 * Initialize ELF note
313 Elf64_Nhdr *note; in nt_init_name() local
316 note = (Elf64_Nhdr *)buf; in nt_init_name()
317 note->n_namesz = strlen(name) + 1; in nt_init_name()
318 note->n_descsz = d_len; in nt_init_name()
319 note->n_type = type; in nt_init_name()
322 memcpy(buf + len, name, note->n_namesz); in nt_init_name()
323 len = roundup(len + note->n_namesz, 4); in nt_init_name()
325 memcpy(buf + len, desc, note->n_descsz); in nt_init_name()
326 len = roundup(len + note->n_descsz, 4); in nt_init_name()
337 * Calculate the size of ELF note
363 /* Prepare prstatus note */ in fill_cpu_elf_notes()
369 /* Prepare fpregset (floating point) note */ in fill_cpu_elf_notes()
414 * Initialize prpsinfo note (new kernel)
432 Elf64_Nhdr note; in get_vmcoreinfo_old() local
438 if (copy_oldmem_kernel(¬e, addr, sizeof(note))) in get_vmcoreinfo_old()
440 if (copy_oldmem_kernel(nt_name, addr + sizeof(note), in get_vmcoreinfo_old()
445 vmcoreinfo = kzalloc(note.n_descsz, GFP_KERNEL); in get_vmcoreinfo_old()
448 if (copy_oldmem_kernel(vmcoreinfo, addr + 24, note.n_descsz)) { in get_vmcoreinfo_old()
452 *size = note.n_descsz; in get_vmcoreinfo_old()
457 * Initialize vmcoreinfo note (new kernel)
496 * Initialize final note (needed for /proc/vmcore code)
500 Elf64_Nhdr *note; in nt_final() local
502 note = (Elf64_Nhdr *) ptr; in nt_final()
503 note->n_namesz = 0; in nt_final()
504 note->n_descsz = 0; in nt_final()
505 note->n_type = 0; in nt_final()