---
name: "i2o_block_open"
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_open"
---

# i2o\_block\_open(9)

Open the block device

## NAME

i2o\_block\_open - Open the block device

## SYNOPSIS

**int i2o\_block\_open(struct block\_device \*** *bdev***, fmode\_t** *mode***);**

## ARGUMENTS

*bdev*

block device being opened

*mode*

file open mode

## DESCRIPTION

Power up the device, mount and lock the media. This function is called, if the block device is opened for access.

Returns 0 on success or negative error code on failure.

## COPYRIGHT
