---
title: vfs_setflags
framework: Kernel
role: symbol
role_heading: Function
platforms: [macOS 10.4+]
path: kernel/1523521-vfs_setflags
---

# vfs_setflags

Set flags on a mount.

## Declaration

```occ
void vfs_setflags(mount_t mp, uint64_t flags);
```

## Parameters

- `mp`: Mount whose flags to set.
- `flags`: Flags to activate. Must be in the bitwise "OR" of MNT_VISFLAGMASK and MNT_CMDFLAGS.

## Return Value

Return Value Flags.

## Discussion

Discussion Sets mount flags to the bitwise "OR" of their current value and the specified bits. Often used by a filesystem as part of the mount process.
