---
name: "disk_clear_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_clear_events"
---

# disk\_clear\_events(9)

synchronously check, clear and return pending events

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

## DESCRIPTION

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

## CONTEXT

Might sleep.

## COPYRIGHT
