X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Freadahead-common.h;h=7add62613f91e79681d9a988d4190548dbc331bc;hb=df37291a5198818e5bb1d11c34ba134aa3d79d96;hp=da6a74ea0350fdb336962a95206f551f03654dd2;hpb=22be093ffb403a1c474037939ca9b88b1ee39f77;p=elogind.git diff --git a/src/readahead-common.h b/src/readahead-common.h index da6a74ea0..7add62613 100644 --- a/src/readahead-common.h +++ b/src/readahead-common.h @@ -23,11 +23,25 @@ ***/ #include +#include + +#include "macro.h" #define READAHEAD_FILE_SIZE_MAX (128*1024*1024) -int file_verify(int fd, const char *fn, struct stat *st); +int file_verify(int fd, const char *fn, off_t file_size_max, struct stat *st); int fs_on_ssd(const char *p); +bool enough_ram(void); + +int open_inotify(void); + +typedef struct ReadaheadShared { + pid_t collect; + pid_t replay; +} _packed_ ReadaheadShared; + +ReadaheadShared *shared_get(void); + #endif