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

# vfs_context_pid

Get the process id of the BSD process associated with a vfs_context_t.

## Declaration

```occ
int vfs_context_pid(vfs_context_t ctx);
```

## Parameters

- `ctx`: Context whose associated process to find.

## Return Value

Return Value Process id.
