---
name: "open_bdev_exclusive"
section: "9"
platform: "linux"
package: "linux-manual-2.6.32"
version: "2.6.32-48squeeze6"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/open_bdev_exclusive"
---

# open\_bdev\_exclusive(9)

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

## NAME

open\_bdev\_exclusive - open a block device by name and set it up for use

## SYNOPSIS

**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

## DESCRIPTION

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

## COPYRIGHT
