mount(3)
DESCRIPTION
Installs a registered native filesystem type at an existing directory. Only root may mount; target is normalized and source is an opaque factory argument.
SYNOPSIS
#include <unistd.h> int mount(const char *type, const char *target, const char *source);
RETURN VALUE
- Returns zero, or -1 and sets errno.
ERRORS
-EFAULT- A string is not readable.
-EINVAL- An argument or target path is invalid.
-EEXIST- Target is already mounted.
-ENOENT- Target does not exist.
-EBUSY- The fixed mount table is full.
-EPERM- The effective UID is not zero.
-ENODEV- Type is not registered.
NOTES
This changes only the in-memory native VFS namespace. It never accesses or persists a host filesystem.