BSD syscall#164
svc · unix #164
funmount
fd-based variant of unmount.
Prototype
int funmount(int fd, int flags);Returns: int
Arguments
| Name | Type | Dir | Description |
|---|---|---|---|
| fd | int | - | |
| flags | int | - |
Version history
| XNU tag | macOS | # |
|---|---|---|
| xnu-12377.1.9 | macOS 26.0 Tahoe | 164 |
| xnu-12377.101.15 | — | 164 |
| xnu-12377.41.6 | — | 164 |
| xnu-12377.61.12 | — | 164 |
| xnu-12377.81.4 | — | 164 |
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