---
name: "i2o_block_device_unlock"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/i2o_block_device_unlock"
---

# i2o\_block\_device\_unlock(9)

Unlocks the media of device dev

## NAME

i2o\_block\_device\_unlock - Unlocks the media of device dev

## SYNOPSIS

**int i2o\_block\_device\_unlock(struct i2o\_device \*** *dev***, u32** *media\_id***);**

## ARGUMENTS

*dev*

I2O device which should receive the unlocked request

*media\_id*

Media Identifier

## DESCRIPTION

Unlocks the media in device dev. The media identifier should be set to -1, because the spec does not support any other value.

Returns 0 on success or negative error code on failure.

## COPYRIGHT
