disk_block_events(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


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