---
name: "vfs_mountedfrom"
section: "9"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/vfs_mountedfrom"
---

# vfs\_mountedfrom(9)

sets the mounted from name for a mount

## NAME

**vfs\_mountedfrom** – sets the mounted from name for a mount

## SYNOPSIS

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

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

*void*\

**vfs\_mountedfrom**(*struct mount \*mp*, *const char \*from*);

## DESCRIPTION

The **vfs\_mountedfrom**() function sets the mounted from name for a mount. This value is used by **statfs**(*2*) to fill in *f\_mntfromname*.

In most cases *from* is the device that contains the file system, but in the case of a pseudo file system it could be a descriptive name like "devfs" or "procfs".

## AUTHORS

This manual page was written by Chad David ⟨*davidc@acns.ab.ca*⟩.
