Lines Matching refs:maps
62 static int read_pages(struct ksm_pages *kp, pm_map_t **maps, size_t num_maps, uint8_t pr_flags);
75 pm_map_t **maps; in main() local
160 error = pm_process_maps(proc, &maps, &num_maps); in main()
168 if (read_pages(&kp, maps, num_maps, pr_flags) < 0) { in main()
169 free(maps); in main()
175 free(maps); in main()
190 static int read_pages(struct ksm_pages *kp, pm_map_t **maps, size_t num_maps, uint8_t pr_flags) { in read_pages() argument
210 pid = pm_process_pid(maps[0]->proc); in read_pages()
211 ker = maps[0]->proc->ker; in read_pages()
231 error = pm_map_pagemap(maps[i], &pagemap, &map_len); in read_pages()
234 pm_process_pid(maps[i]->proc)); in read_pages()
247 vaddr = pm_map_start(maps[i]) + j * pm_kernel_pagesize(ker); in read_pages()