---
title: "hv_vm_remove_pio_notifier(_:_:_:_:_:)"
framework: Hypervisor
role: symbol
role_heading: Function
platforms: [macOS 11.0+]
path: "hypervisor/hv_vm_remove_pio_notifier(_:_:_:_:_:)"
---

# hv_vm_remove_pio_notifier(_:_:_:_:_:)

Removes an existing I/O notifier that matches the specifications you provide.

## Declaration

```swift
func hv_vm_remove_pio_notifier(_ addr: UInt16, _ size: Int, _ value: UInt32, _ mach_port: mach_port_t, _ flags: hv_ion_flags_t) -> hv_return_t
```

## Parameters

- `addr`: The port I/O address of the existing notifier.
- `size`: The match-size from the existing notifier.
- `value`: The value to match against from the existing notifier.
- `mach_port`: The Mach port from the existing notifier.
- `flags`: The doc://com.apple.hypervisor/documentation/Hypervisor/hv_ion_flags_t option flags from the existing notifier.

## Return Value

Return Value 0 on success, or an hv_return_t error code.

## Discussion

Discussion The arguments you provide must match those previously used to add the notifier.

## See Also

### I/O notifier functions

- [hv_vm_add_pio_notifier(_:_:_:_:_:)](hypervisor/hv_vm_add_pio_notifier(_:_:_:_:_:).md)
- [hv_ion_message_t](hypervisor/hv_ion_message_t.md)
- [hv_ion_flags_t](hypervisor/hv_ion_flags_t.md)
- [I/O Notifier Flags](hypervisor/3727903-i-o-notifier-flags.md)
