Lines Matching refs:inf
757 FILE *inf = fopen("/proc/filesystems", "r"); in check_resctrlfs_support() local
762 if (!inf) in check_resctrlfs_support()
765 res = fgrep(inf, "nodev\tresctrl\n"); in check_resctrlfs_support()
772 fclose(inf); in check_resctrlfs_support()
792 char *fgrep(FILE *inf, const char *str) in fgrep() argument
797 while (!feof(inf)) { in fgrep()
798 if (!fgets(line, 256, inf)) in fgrep()
849 FILE *inf; in resctrl_mon_feature_exists() local
855 inf = fopen(res_path, "r"); in resctrl_mon_feature_exists()
856 if (!inf) in resctrl_mon_feature_exists()
859 res = fgrep(inf, feature); in resctrl_mon_feature_exists()
861 fclose(inf); in resctrl_mon_feature_exists()