Lines Matching refs:nphdr
75 static size_t get_kcore_size(int *nphdr, size_t *elf_buflen) in get_kcore_size() argument
80 *nphdr = 1; /* PT_NOTE */ in get_kcore_size()
87 *nphdr = *nphdr + 1; in get_kcore_size()
90 (*nphdr + 2)*sizeof(struct elf_phdr) + in get_kcore_size()
114 int nphdr; in __kcore_update_ram() local
130 proc_root_kcore->size = get_kcore_size(&nphdr, &size); in __kcore_update_ram()
319 static void elf_kcore_store_hdr(char *bufp, int nphdr, int dataoff) in elf_kcore_store_hdr() argument
348 elf->e_phnum = nphdr; in elf_kcore_store_hdr()
436 int nphdr; in read_kcore() local
440 size = get_kcore_size(&nphdr, &elf_buflen); in read_kcore()
463 elf_kcore_store_hdr(elf_buf, nphdr, elf_buflen); in read_kcore()