Skip to content
BSD syscall#164

svc · unix #164

funmount

fd-based variant of unmount.

Prototype

int funmount(int fd, int flags);

Returns: int

Arguments

NameTypeDirDescription
fdint-
flagsint-

Version history

XNU tagmacOS#
xnu-12377.1.9macOS 26.0 Tahoe164
xnu-12377.101.15164
xnu-12377.41.6164
xnu-12377.61.12164
xnu-12377.81.4164

Notes

Race-safe alternative to path-based unmount when callers hold a stable directory fd to the mount point. Accepts the same flag set, notably MNT_FORCE.

Related APIs

unmountfmountopenat