---
name: "open_bdev_excl"
section: "9"
platform: "linux"
package: "linux-manual-2.6.26"
version: "2.6.26-29"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/open_bdev_excl"
---

# open\_bdev\_excl(9)

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

## NAME

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

## SYNOPSIS

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

## DESCRIPTION

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

## COPYRIGHT
