---
name: "rio_add_mport_pw_handler"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/rio_add_mport_pw_handler"
---

# rio\_add\_mport\_pw\_handler(9)

add port-write message handler into the list of mport specific pw handlers

## NAME

rio\_add\_mport\_pw\_handler - add port-write message handler into the list of mport specific pw handlers

## SYNOPSIS

**int rio\_add\_mport\_pw\_handler(struct rio\_mport \*** *mport***, void \*** *context***, int (\****pwcback***) (struct rio\_mport \*mport, void \*context, union rio\_pw\_msg \*msg, int step));**

## ARGUMENTS

*mport*

RIO master port to bind the portwrite callback

*context*

Handler specific context to pass on event

*pwcback*

Callback to execute when portwrite is received

## DESCRIPTION

Returns 0 if the request has been satisfied.

## AUTHOR

**Matt Porter** \<mporter@kernel.crashing.org\>, \<mporter@mvista.com\>

Author.

## COPYRIGHT
