Searched refs:kpagecount_fd (Results 1 – 2 of 2) sorted by relevance
39 ker->kpagecount_fd = open("/proc/kpagecount", O_RDONLY); in pm_kernel_create()40 if (ker->kpagecount_fd < 0) { in pm_kernel_create()49 close(ker->kpagecount_fd); in pm_kernel_create()122 off = lseek64(ker->kpagecount_fd, pfn * sizeof(uint64_t), SEEK_SET); in pm_kernel_count()125 if (read(ker->kpagecount_fd, count_out, sizeof(uint64_t)) < in pm_kernel_count()152 close(ker->kpagecount_fd); in pm_kernel_destroy()
80 int kpagecount_fd; member