---
name: "disk_block_events"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/disk_block_events"
---

# disk\_block\_events(9)

block and flush disk event checking

## NAME

disk\_block\_events - block and flush disk event checking

## SYNOPSIS

**void disk\_block\_events(struct gendisk \*** *disk***);**

## ARGUMENTS

*disk*

disk to block events for

## DESCRIPTION

On return from this function, it is guaranteed that event checking isn't in progress and won't happen until unblocked by **disk\_unblock\_events**. Events blocking is counted and the actual unblocking happens after the matching number of unblocks are done.

Note that this intentionally does not block event checking from **disk\_clear\_events**.

## CONTEXT

Might sleep.

## COPYRIGHT
