---
name: "VFS_UNMOUNT"
section: "9"
platform: "linux"
package: "freebsd-manpages"
version: "6.0-5"
release: "Debian 4.0 (Etch)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/VFS_UNMOUNT"
---

# VFS\_UNMOUNT(9)

unmount a file system

## NAME

**VFS\_UNMOUNT** – unmount a file system

## SYNOPSIS

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

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

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

*int*\

**VFS\_UNMOUNT**(*struct mount \*mp*, *int mntflags*, *struct thread \*td*);

## DESCRIPTION

The **VFS\_UNMOUNT**() macro unmounts a file system.

The arguments it expects are:

- *mp*

  The file system.

- *mntflags*

  Bit-mask of flags for the unmount operation. The flags currently supported by **VFS\_UNMOUNT**() are:

  - MNT\_FORCE

    Open files are forcibly closed before the file system is unmounted.

- *td*

  Thread which is unmounting the file system.

## SEE ALSO

[vflush(9)](/vflush/9.md), [VFS(9)](/VFS/9.md), [vnode(9)](/vnode/9.md)

## AUTHORS

This manual page was written by Doug Rabson.
