'\" t .\" Title: disk_clear_events .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Block Devices .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "DISK_CLEAR_EVENTS" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "Block Devices" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" disk_clear_events \- synchronously check, clear and return pending events .SH "SYNOPSIS" .HP \w'unsigned\ int\ disk_clear_events('u .BI "unsigned int disk_clear_events(struct\ gendisk\ *\ " "disk" ", unsigned\ int\ " "mask" ");" .SH "ARGUMENTS" .PP \fIstruct gendisk * disk\fR .RS 4 disk to fetch and clear events from .RE .PP \fIunsigned int mask\fR .RS 4 mask of events to be fetched and cleared .RE .SH "DESCRIPTION" .PP Disk events are synchronously checked and pending events in \fImask\fR are cleared and returned\&. This ignores the block count\&. .SH "CONTEXT" .PP Might sleep\&. .SH "COPYRIGHT" .br