Lines Matching defs: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;
160 error = pm_process_maps(proc, &maps, &num_maps);
168 if (read_pages(&kp, maps, num_maps, pr_flags) < 0) {
169 free(maps);
175 free(maps);
190 static int read_pages(struct ksm_pages *kp, pm_map_t **maps, size_t num_maps, uint8_t pr_flags) {
211 pid = pm_process_pid(maps[0]->proc);
212 ker = maps[0]->proc->ker;
232 error = pm_map_pagemap(maps[i], &pagemap, &map_len);
235 pm_process_pid(maps[i]->proc));
248 vaddr = pm_map_start(maps[i]) + j * pm_kernel_pagesize(ker);