open_bdev_exclusive(9)

open_bdev_exclusive9

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

Usage

struct block_device * open_bdev_exclusive(const char * path, fmode_t mode, void * holder);

Arguments

path

special file representing the block device

mode

FMODE_... combination to pass be used

holder

owner for exclusion

Overview

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

From linux-manual-2.6.32 2.6.32-48squeeze6 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.