---
name: "rio_get_host_deviceid_lock"
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_get_host_deviceid_lock"
---

# rio\_get\_host\_deviceid\_lock(9)

Reads the Host Device ID Lock CSR on a device

## NAME

rio\_get\_host\_deviceid\_lock - Reads the Host Device ID Lock CSR on a device

## SYNOPSIS

**u16 rio\_get\_host\_deviceid\_lock(struct rio\_mport \*** *port***, u8** *hopcount***);**

## ARGUMENTS

*port*

Master port to send transaction

*hopcount*

Number of hops to the device

## DESCRIPTION

Used during enumeration to read the Host Device ID Lock CSR on a RIO device. Returns the value of the lock register.

## AUTHOR

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

Author.

## COPYRIGHT
