disk_block_events
Prev | Chapter 14. Block Devices | Next

## 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.

Prev | Up | Next
disk_expand_part_tbl | Home | disk_unblock_events