---
name: "rio_unlock_device"
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_unlock_device"
---

# rio\_unlock\_device(9)

Releases host device lock for specified device

## NAME

rio\_unlock\_device - Releases host device lock for specified device

## SYNOPSIS

**int rio\_unlock\_device(struct rio\_mport \*** *port***, u16** *destid***, u8** *hopcount***);**

## ARGUMENTS

*port*

Master port to send transaction

*destid*

Destination ID for device/switch

*hopcount*

Hopcount to reach switch

## DESCRIPTION

Returns 0 if device lock released or EINVAL if fails.

## AUTHOR

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

Author.

## COPYRIGHT
