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

# vfs_setlocklocal

Mark a filesystem as using VFS-level advisory locking support.

## Declaration

```occ
void vfs_setlocklocal(mount_t mp);
```

## Parameters

- `mp`: Mount to mark.

## Return Value

Return Value void.

## Discussion

Discussion Advisory locking operations will not call down to the filesystem if this flag is set.
