---
name: "XvSelectPortNotify"
section: "3"
platform: "linux"
package: "libxv"
version: "1.0.13-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XvSelectPortNotify"
---

# XvSelectPortNotify(3)

enable or disable XvPortNotify events

## NAME

XvSelectPortNotify - enable or disable XvPortNotify events

## SYNOPSIS

**#include \<X11/extensions/Xvlib.h\>**

```
int XvSelectPortNotify(Display *dpy, XvPortID port, Bool onoff);
```

## ARGUMENTS

- *dpy*

  Specifies the connection to the X server.

- *port*

  Specifies the port for which PortNotify events are to be generated when its attributes are changed using [**XvSetPortAttribute**(3)](/XvSetPortAttribute/3.md)

- *onoff*

  Specifies whether notification is to be enabled or disabled.

## DESCRIPTION

[**XvSelectPortNotify**(3)](/XvSelectPortNotify/3.md) enables or disables PortNotify event delivery to the requesting client. [**XvPortNotify**(3)](/XvPortNotify/3.md) events are generated when port attributes are changed using [**XvSetPortAttribute**(3)](/XvSetPortAttribute/3.md).

## RETURN VALUES

- \[Success\]

  Returned if [**XvSelectPortNotify**(3)](/XvSelectPortNotify/3.md) completed successfully.

- \[XvBadExtension\]

  Returned if the Xv extension is unavailable.

- \[XvBadAlloc\]

  Returned if [**XvSelectPortNotify**(3)](/XvSelectPortNotify/3.md) failed to allocate memory to process the request.

## DIAGNOSTICS

- \[XvBadPort\]

  Generated if the requested port does not exist.

## SEE ALSO

**XvSetPortNotify**(3), [**XvSetPortAttribute**(3)](/XvSetPortAttribute/3.md), [**XvPortNotify**(3)](/XvPortNotify/3.md)
