chiark / gitweb /
readahead: preload pack file
[elogind.git] / src / sd-daemon.h
index 008a44c1d21b77270344ce338dbefa429be1e238..2fbfe955cef5c98a3cb4a2b6fb56ebd2a0fb49b6 100644 (file)
@@ -254,6 +254,16 @@ int sd_notifyf(int unset_environment, const char *format, ...) _sd_printf_attr_(
 */
 int sd_booted(void) _sd_hidden_;
 
+/*
+  Controls ongoing disk read-ahead operations during boot-up. The argument
+  must be a string, and either "cancel", "done" or "noreplay".
+
+  cancel = terminate read-ahead data collection, drop collected information
+  done = terminate read-ahead data collection, keep collected information
+  noreplay = terminate read-ahead replay
+*/
+int sd_readahead(const char *action);
+
 #ifdef __cplusplus
 }
 #endif