<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 15.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreAudio",
  "identifier" : "/documentation/CoreAudio/AudioHardwareDevice/hogModePID",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Audio"
    ],
    "preciseIdentifier" : "s:9CoreAudio0B14HardwareDeviceC10hogModePIDs5Int32Vvp"
  },
  "title" : "hogModePID"
}
-->

# hogModePID

A pid_t indicating the process that currently owns exclusive access to the device or
a value of -1 indicating that the device is currently available to all processes.

```
var hogModePID: pid_t { get throws }
```

## Discussion

If the device is in a non-mixable mode, the HAL will automatically take hog mode on behalf
of the first process to start an IOProc.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)