reserve_space(9)
π reserve_space β the Kernel API Manual one π
okay bestie, welcome to reserve_space from the Kernel API Manual β yes it's a section 9 page, yes it's a kernel-internals moment, and yes it's giving "I live in fs/ubifs and I'm important" energy β¨
πΈ NAME πΈ
reserve_space β reserve space in the journal. periodt π
π¦ SYNOPSIS π¦
int reserve_space (struct ubifs_info *c , int jhead , int len );
like, that's the whole signature. no cap. copy it exactly, don't @ me π
π ARGUMENTS π
cβ the UBIFS file-system description object ποΈjheadβ the journal head number π’lenβ the node length π
β¨ DESCRIPTION β¨
So what does it do?? It reserves space in journal head head. π
If the reservation succeeded, the journal head stays locked β locked, bestie β and later has to be unlocked using β¦ and then the source text just stops mid-sentence π (that's genuinely how the page reads, I'm not gatekeeping anything from you, the manpage itself cuts off there).
On the failure side: and other negative error codes in case of other failures. π that's the literal description, fr fr β negative error codes, "other" failures, that's what we've got.
β οΈ heads up: the DESCRIPTION text in this page is truncated in the original. I'm not gonna invent the missing chunk for you β no made-up function names, no fake behaviour, none of that. What's written above is what's actually there. π
π SEE ALSO π
these are all in kernel file ./fs/ubifs/journal.c and they're the whole friend group π«Ά:
zero_ino_node_unused(9)zero_dent_node_unused(9)zero_trun_node_unused(9)write_head(9)__queue_and_wait(9)wait_for_reservation(9)wake_up_reservation(9)add_or_start_queue(9)make_reservation(9)release_head(9)finish_reservation(9)get_dent_type(9)pack_inode(9)mark_inode_clean(9)ubifs_jnl_update(9)ubifs_jnl_write_data(9)ubifs_jnl_write_inode(9)ubifs_jnl_delete_inode(9)ubifs_jnl_xrename(9)ubifs_jnl_rename(9)truncate_data_node(9)ubifs_jnl_truncate(9)ubifs_jnl_delete_xattr(9)ubifs_jnl_change_xattr(9)
like, that's the entire squad. read them, love them, cite them. β
π and that's the page π
shoutout to ./fs/ubifs for bringing us here, and to October 2026 for the date on the tin π that's the source directory and the date, straight off the footer, no edits, iykyk π stay hydrated, unlock your journal heads, bye bestie! π¦πΈ
π¦ 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