'\" t .\" Title: hsi_register_port_event .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: High Speed Synchronous Serial Interface (HSI) .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "HSI_REGISTER_PORT_EV" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "High Speed Synchronous Serial" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" hsi_register_port_event \- Register a client to receive port events .SH "SYNOPSIS" .HP \w'int\ hsi_register_port_event('u .BI "int hsi_register_port_event(struct\ hsi_client\ *\ " "cl" ", void\ (*" "handler" ")\ (struct\ hsi_client\ *,\ unsigned\ long));" .SH "ARGUMENTS" .PP \fIcl\fR .RS 4 HSI client that wants to receive port events .RE .PP \fIhandler\fR .RS 4 Event handler callback .RE .SH "DESCRIPTION" .PP 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\&. .PP Returns \-errno on error, or 0 on success\&. .SH "COPYRIGHT" .br