---
name: "vfs_unmountall"
section: "9freebsd"
platform: "linux"
package: "freebsd-manpages"
version: "12.2-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/vfs_unmountall/9freebsd"
---

# vfs\_unmountall(9freebsd)

unmount all file systems

## NAME

**vfs\_unmountall** – unmount all file systems

## SYNOPSIS

**#include \<sys/param.h\>**

**#include \<sys/mount.h\>**

*void*\

**vfs\_unmountall**(*void*);

## 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.

## SEE ALSO

[boot(9)](/boot/9.md)
