VFS_UNMOUNT(9)

VFS_UNMOUNT9

Unmount a file system

Usage

#include <sys/param.h>

#include <sys/mount.h>

#include <sys/vnode.h>

int

VFS_UNMOUNT(struct mount *mp, int mntflags, struct thread *td);

Overview

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.

Authors

This manual page was written by Doug Rabson.

From freebsd-manpages 6.0-5 in Debian 4.0 (Etch). Parsed by carta from the page's mdoc source.