UMOUNT(2) — Silicon Graphics
NAME
umount − unmount a file system
SYNOPSIS
int umount (spec)
char ∗spec;
DESCRIPTION
Umount requests that a previously mounted file system contained on the block special device identified by spec be unmounted. Spec is a pointer to a path name. After unmounting the file system, the directory upon which the file system was mounted reverts to its ordinary interpretation.
Umount may be invoked only by the super-user.
Umount will fail if one or more of the following are true:
The process’s effective user ID is not super-user. [EPERM]
Spec does not exist. [ENXIO]
Spec is not a block special device. [ENOTBLK]
Spec is not mounted. [EINVAL]
A file on spec is busy. [EBUSY]
Spec points outside the process’s allocated address space. [EFAULT]
RETURN VALUE
Upon successful completion a value of 0 is returned. Otherwise, a value of −1 is returned and errno is set to indicate the error.
SEE ALSO
ASSEMBLER
moveq#22,D0| sys umount
movlspec,A0
trap#0
Carry bit set on failure and cleared on success.
Version 2.3 — July 04, 1985