VFS_UNMOUNTALL(9)

NAME
vfs_unmountall - unmount all file systems

SYNOPSIS
#include <sys/mount.h>
void
vfs_unmountall(int halting);

DESCRIPTION
The vfs_unmountall function, run only at system shutdown, unmounts all mounted file systems from most recent to oldest in order to avoid handling dependencies.

If halting is set to 1, vfs_unmountall will disconnect but leave certain mount points, such as devfs(5), intact.

SEE ALSO
boot(9)