.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "I2O_BLOCK_DEVICE_UNLOCK" "9" "09 October 2005" "" ""
.SH NAME
i2o_block_device_unlock \- Unlocks the media of device dev
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int i2o_block_device_unlock (struct i2o_device * \fIdev\fB, u32 \fImedia_id\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdev\fB\fR
I2O device which should receive the unlocked request
.TP
\fB\fImedia_id\fB\fR
Media Identifier
.SH "DESCRIPTION"
.PP
Unlocks the media in device dev. The media identifier should be set to
-1, because the spec does not support any other value.
.PP
Returns 0 on success or negative error code on failure.