X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Fio-hint.hpp;fp=src%2Fcommon%2Fio-hint.hpp;h=24fde6bbed8ed153fc0331ae272bb93a6c3e847e;hb=671e39d79a1ad9c3f13c4784a26710a5b1f14237;hp=0000000000000000000000000000000000000000;hpb=83885b70dcfbcee908957d8a8057870c6f6c1273;p=lttng-tools.git diff --git a/src/common/io-hint.hpp b/src/common/io-hint.hpp new file mode 100644 index 000000000..24fde6bbe --- /dev/null +++ b/src/common/io-hint.hpp @@ -0,0 +1,21 @@ +/* + * Copyright (C) 2023 Michael Jeanson + * + * SPDX-License-Identifier: LGPL-2.1-only + * + */ + +#ifndef _LTTNG_IO_HINT_H +#define _LTTNG_IO_HINT_H + +namespace lttng { +namespace io { + +void hint_flush_range_dont_need_sync(int fd, off_t offset, off_t nbytes); +void hint_flush_range_sync(int fd, off_t offset, off_t nbytes); +void hint_flush_range_async(int fd, off_t offset, off_t nbytes); + +} /* namespace io */ +} /* namespace lttng */ + +#endif