---
name: "XvSelectPortNotify"
section: "3x"
platform: "linux"
package: "libxv-dev"
version: "1:1.0.2-1"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/XvSelectPortNotify/3x"
---

# XvSelectPortNotify(3x)

enable or disable XvPortNotify(3x) events

## Name

XvSelectPortNotify - enable or disable [XvPortNotify(3x)](/XvPortNotify/3x.md) events

## Syntax

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

**XvSelectPortNotify(***dpy, port, onoff*)

**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(3x)](/XvSetPortAttribute/3x.md).

- *onoff*

  Specifies whether notification is to be enabled or disabled.

## Description

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

## Returned Values

- \[Success\]

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

- \[XvBadExtension\]

  Returned if the Xv extension is unavailable.

- \[XvBadAlloc\]

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

## Diagnostics

- \[XvBadPort\]

  Generated if the requested port does not exist.

## See Also

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