'\" t .\" Title: i2o_block_device_lock .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Message-based devices .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "I2O_BLOCK_DEVICE_LOC" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Message-based devices" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" i2o_block_device_lock \- Locks the media of device dev .SH "SYNOPSIS" .HP \w'int\ i2o_block_device_lock('u .BI "int i2o_block_device_lock(struct\ i2o_device\ *\ " "dev" ", u32\ " "media_id" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 I2O device which should receive the lock request .RE .PP \fImedia_id\fR .RS 4 Media Identifier .RE .SH "DESCRIPTION" .PP Lock media of device dev to prevent removal\&. 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\&. .SH "COPYRIGHT" .br