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

# vfs_statfs

Get information about filesystem status.

## Declaration

```occ
struct vfsstatfs * vfs_statfs(mount_t mp);
```

## Parameters

- `mp`: Mount for which to get vfsstatfs pointer.

## Return Value

Return Value Pointer to vfsstatfs.

## Discussion

Discussion Each filesystem has a struct vfsstatfs associated with it which is updated as events occur; this function returns a pointer to it. Note that the data in the structure will continue to change over time and also that it may be quite stale of vfs_update_vfsstat has not been called recently.
