Searched refs:proc_swaps (Results 1 - 3 of 3) sorted by relevance

/systemd/src/core/
H A Dumount.c143 _cleanup_fclose_ FILE *proc_swaps = NULL; local
149 proc_swaps = fopen("/proc/swaps", "re");
150 if (!proc_swaps)
153 (void) fscanf(proc_swaps, "%*s %*s %*s %*s %*s\n");
160 k = fscanf(proc_swaps,
H A Dswap.c1083 rewind(m->proc_swaps);
1085 (void) fscanf(m->proc_swaps, "%*s %*s %*s %*s %*s\n");
1091 k = fscanf(m->proc_swaps,
1271 m->proc_swaps = safe_fclose(m->proc_swaps);
1281 if (!m->proc_swaps) {
1282 m->proc_swaps = fopen("/proc/swaps", "re");
1283 if (!m->proc_swaps) {
1292 r = sd_event_add_io(m->event, &m->swap_event_source, fileno(m->proc_swaps), EPOLLPRI, swap_dispatch_io, m);
H A Dmanager.h181 FILE *proc_swaps; member in struct:Manager

Completed in 2049 milliseconds