disk_flush_events(9)
β¨ NAME β¨
disk_flush_events β schedule immediate event checking and flushing π«Ά
okay so bestie, welcome to the disk_flush_events(9) page from the Kernel API Manual π
this one is short and iconic, so letβs get into it β¨
πΈ SYNOPSIS πΈ
void disk_flush_events (struct gendisk *disk , unsigned int mask );
π ARGUMENTS π
diskβ the disk you wanna check and flush events for πmaskβ the events you wanna flush β¨
π¦ DESCRIPTION π¦
Schedule immediate event checking on disk if itβs not blocked. Events in mask are scheduled to be cleared from the driver. Note that this doesnβt clear the events from disk->ev π
lowkey important: it schedules the clearing, but disk->ev itself is not cleared by this. no cap π
π CONTEXT π
If mask is non-zero, this must be called with disk->open_mutex held π
π SEE ALSO π
Kernel file ./block/disk-events.c plus these besties:
disk_block_events(9)disk_unblock_events(9)disk_clear_events(9)disk_check_media_change(9)disk_force_media_change(9)
okay bye bestie, this page is from ./block, dated October 2026, and itβs literally the disk_flush_events(9) era π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms