wait_for_commit(9)
π wait_for_commit(9) β a Kernel API Manual moment β¨
okay so bestie, welcome to the Kernel API Manual page for wait_for_commit(9) and honestly? it's giving "short but iconic." let's get into it π
β¨ NAME β¨
wait_for_commit β wait for commit. literally that's the whole vibe. it waits. for a commit. periodt π
π¦ SYNOPSIS π¦
int wait_for_commit (struct ubifs_info *c );
like yes, that's the whole signature, no cap. one argument, one int coming back at you πΈ
π ARGUMENTS π
cβ the UBIFS file-system description object π that's the one and only thing you hand over, and it's carrying the whole file-system tea.
π DESCRIPTION π
so here's the deal: this function sleeps until the commit operation is no longer running. that's it. that's the function. it just naps π΄β¨ until the commit stuff wraps up, then it comes back. main character energy honestly β it doesn't do the work, it just waits very confidently for the work to be done π«Ά
ngl "sleeps until the commit operation is no longer running" is the entire spec, so don't go reading extra behaviour into it, bestie π
π SEE ALSO π
the whole friend group, fr fr π go read these too iykyk:
do_commit(9)run_bg_commit(9)ubifs_bg_thread(9)ubifs_commit_required(9)ubifs_request_bg_commit(9)ubifs_run_commit(9)ubifs_gc_should_commit(9)struct idx_node(9)dbg_old_index_check_init(9)dbg_check_old_index(9)
all of these live in the kernel file ./fs/ubifs/commit.c β that's the address, bestie, don't lose it π
okay that's the page!! mwah π this one came to you straight out of ./fs/ubifs, dated October 2026, and it's wait_for_commit(9) forever and always πβ go wait for a commit, slay, bye!! π¦π
π¦ 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