Lines Matching refs:maps_fp
153 static bool is_range_mapped(FILE *maps_fp, unsigned long start, in is_range_mapped() argument
161 rewind(maps_fp); in is_range_mapped()
163 while (getline(&line, &len, maps_fp) != -1) { in is_range_mapped()
239 static void mremap_expand_merge(FILE *maps_fp, unsigned long page_size) in mremap_expand_merge() argument
262 success = is_range_mapped(maps_fp, (unsigned long)start, in mremap_expand_merge()
278 static void mremap_expand_merge_offset(FILE *maps_fp, unsigned long page_size) in mremap_expand_merge_offset() argument
302 success = is_range_mapped(maps_fp, (unsigned long)start, in mremap_expand_merge_offset()
728 FILE *maps_fp; in main() local
836 maps_fp = fopen("/proc/self/maps", "r"); in main()
838 if (maps_fp == NULL) { in main()
843 mremap_expand_merge(maps_fp, page_size); in main()
844 mremap_expand_merge_offset(maps_fp, page_size); in main()
846 fclose(maps_fp); in main()