---
title: vfs_isunmount
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 10.6+]
path: kernel/1523380-vfs_isunmount
---

# vfs_isunmount

Determine if an unmount is in progress.

## Declaration

```occ
int vfs_isunmount(mount_t mp);
```

## Parameters

- `mp`: Mount to test.

## Return Value

Return Value Nonzero if an unmount is in progress, else zero.

## Discussion

Discussion This is an unsynchronized snapshot of the mount state. It should only be called if the mount is known to be valid, e.g. there are known to be live files on that volume.
