Lines Matching refs:inf
652 FILE *inf = fopen("/proc/filesystems", "r"); in check_resctrlfs_support() local
657 if (!inf) in check_resctrlfs_support()
660 res = fgrep(inf, "nodev\tresctrl\n"); in check_resctrlfs_support()
667 fclose(inf); in check_resctrlfs_support()
687 char *fgrep(FILE *inf, const char *str) in fgrep() argument
692 while (!feof(inf)) { in fgrep()
693 if (!fgets(line, 256, inf)) in fgrep()
744 FILE *inf; in resctrl_mon_feature_exists() local
750 inf = fopen(res_path, "r"); in resctrl_mon_feature_exists()
751 if (!inf) in resctrl_mon_feature_exists()
754 res = fgrep(inf, feature); in resctrl_mon_feature_exists()
756 fclose(inf); in resctrl_mon_feature_exists()