Lines Matching refs:fp
424 FILE *fp; in read_disk_util_state() local
437 fp = fopen("/proc/uptime", "r"); in read_disk_util_state()
438 if (fgets(line, sizeof(line), fp) == NULL) { in read_disk_util_state()
443 fclose(fp); in read_disk_util_state()
450 fp = fopen("/proc/diskstats", "r"); in read_disk_util_state()
451 while (fgets(line, sizeof(line), fp)) { in read_disk_util_state()
470 fclose(fp); in read_disk_util_state()
482 FILE *fp; in read_cpu_util_state() local
486 fp = fopen("/proc/stat", "r"); in read_cpu_util_state()
487 if (fgets(line, sizeof(line), fp) == NULL) { in read_cpu_util_state()
492 fclose(fp); in read_cpu_util_state()
654 ioshark_read_header(FILE *fp, struct ioshark_header *header) in ioshark_read_header() argument
656 if (fread(header, sizeof(struct ioshark_header), 1, fp) != 1) in ioshark_read_header()
665 ioshark_read_file_state(FILE *fp, struct ioshark_file_state *state) in ioshark_read_file_state() argument
667 if (fread(state, sizeof(struct ioshark_file_state), 1, fp) != 1) in ioshark_read_file_state()
676 ioshark_read_file_op(FILE *fp, struct ioshark_file_operation *file_op) in ioshark_read_file_op() argument
678 if (fread(file_op, sizeof(struct ioshark_file_operation), 1, fp) != 1) in ioshark_read_file_op()