disk_clear_events
Prev | Chapter 14. Block Devices | Next

## Name

disk_clear_events — synchronously check, clear and return pending events

## Synopsis

`unsigned int disk_clear_events (` | struct gendisk * disk,
| unsigned int mask`)`;

## Arguments

`disk`

  disk to fetch and clear events from

`mask`

  mask of events to be fetched and clearted

## Description

Disk events are synchronously checked and pending events in `mask` are cleared and returned. This ignores the block count.

## CONTEXT

Might sleep.

Prev | Up | Next
disk_flush_events | Home | disk_get_part