disk_block_events(9)
π disk_block_events(9) π
okay bestie so this is a page straight out of the Kernel API Manual β like, the kernel's own group chat rules β and today's main character is disk_block_events. yes it's a (9) page, which is kernel-speak for "grown-up developer info, not your cute little user command." slay.
β¨ NAME β¨
disk_block_events β block and flush disk event checking, no cap π
β¨ SYNOPSIS β¨
void disk_block_events (struct gendisk *disk );
β¨ ARGUMENTS β¨
diskβ the disk you wanna block events for. that's it, that's the whole argument. she's low maintenance π
πΈ DESCRIPTION πΈ
okay so here's the tea. the moment this function returns, it is guaranteed that event checking isn't in progress and won't happen until you unblock it with disk_unblock_events. like, you literally have the receipts.
and the blocking is counted, bestie β it's giving bouncer with a clicker. the actual unblocking only happens after the matching number of unblocks are done, so don't try to skip the line. π₯
π«Ά heads up though: this intentionally does not block event checking from disk_clear_events. she has her own thing going on and we respect it.
π¦ CONTEXT π¦
Might sleep. π΄ iykyk β plan accordingly, she is not about to be fine with you calling her somewhere she can't nap.
π SEE ALSO π
Kernel file ./block/disk-events.c and her whole friend group:
disk_unblock_events(9)disk_flush_events(9)disk_clear_events(9)disk_check_media_change(9)disk_force_media_change(9)
that's the whole page, periodt. π this lil drop came out of ./block and it's stamped October 2026 β so go forth, block those events, and remember who told you. π§βπ
π¦ 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