1use crate::backend;
2
3/// `sync`—Flush cached filesystem data for all filesystems.
4///
5/// # References
6/// - [POSIX]
7/// - [Linux]
8///
9/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/sync.html
10/// [Linux]: https://man7.org/linux/man-pages/man2/sync.2.html
11#[inline]
12pub fn sync() {
13 backend::fs::syscalls::sync();
14}
15