disk_flush_events(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:


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