open_bdev_excl(9)

open_bdev_excl9

Open a block device by name and set it up for use

Usage

struct block_device * open_bdev_excl(const char * path, int flags, void * holder);

Arguments

path

special file representing the block device

flags

MS_RDONLY for opening read-only

holder

owner for exclusion

Overview

Open the blockdevice described by the special file at path, claim it for the holder.

Releases

2 releases since Debian 4.0 (Etch); the text changed 1 time.

  1. 4.0
  2. 5.0

From linux-manual-2.6.26 2.6.26-29 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.