---
name: "hsi_register_port_event"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/hsi_register_port_event"
---

# hsi\_register\_port\_event(9)

Register a client to receive port events

## NAME

hsi\_register\_port\_event - Register a client to receive port events

## SYNOPSIS

**int hsi\_register\_port\_event(struct hsi\_client \*** *cl***, void (\****handler***) (struct hsi\_client \*, unsigned long));**

## ARGUMENTS

*cl*

HSI client that wants to receive port events

*handler*

Event handler callback

## DESCRIPTION

Clients should register a callback to be able to receive events from the ports. Registration should happen after claiming the port. The handler can be called in interrupt context.

Returns -errno on error, or 0 on success.

## COPYRIGHT
