SysTutorials

Linux Manual Pages › Section 9

rio_lock_device(9)

rio_lock_device – Acquires host device lock for specified device

Synopsis

int rio_lock_device(struct rio_mport *port, u16 destid, u8 hopcount, int wait_ms);

Arguments

port

Master port to send transaction

destid

Destination ID for device/switch

hopcount

Hopcount to reach switch

wait_ms

Max wait time in msec (0 = no timeout)

Description

Attepts to acquire host device lock for specified device Returns 0 if device lock acquired or EINVAL if timeout expires.

Author

Matt Porter <mporter [at] kernel.crashing.org>, <mporter [at] mvista.com>

Author.

Copyright