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

# vfs_getvfs

Given a filesystem ID, look up a mount structure.

## Declaration

```occ
mount_t vfs_getvfs(fsid_t *fsid);
```

## Parameters

- `fsid`: Filesystem ID to look up.

## Return Value

Return Value Mountpoint if found, else NULL. Note unmounting mountpoints can be returned.
