STRUCT UBIFS_JHEAD(9)
β¨ struct ubifs_jhead(9) β¨
okay so bestie, we're in the Kernel API Manual today and the main character is literally struct ubifs_jhead(9) β yes, that IS a struct in the kernel, and yes, it's giving "journal head" π
π NAME π
struct ubifs_jhead β journal head. that's it, that's the whole name. short, sweet, iconic β¨
πΈ SYNOPSIS πΈ
struct ubifs_jhead {
struct ubifs_wbuf wbuf;
struct list_head buds_list;
unsigned int grouped:1;
struct shash_desc *log_hash;
};
no cap, that's the whole shape of it π¦
π¦ Members π¦
wbufβ the head's write-buffer. that's where the writing happens, bestie π«Άbuds_listβ a list of bud LEBs that belong to this journal head. very "these are my buds and they're with me" energy πgroupedβ non-zero if UBIFS groups nodes when writing to this journal head. like, it's either zero or it's not, yk? β¨log_hashβ the log hash from the commit start node all the way up to this journal head. it's the whole journey fr π₯
π Description π
β οΈ heads up bestie, and this is the important bit: the buds list is protected by the c->buds_lock. do not forget the lock. the lock is sacred. respect the lock π
ngl that's the entire description, so we're not padding it out. sometimes less is more, periodt π
π SEE ALSO π
Kernel file ./fs/ubifs/ubifs.h β and then a whole squad of related structs and functions, all of them absolute legends:
struct ubifs_old_idx(9)struct ubifs_scan_node(9)struct ubifs_scan_leb(9)struct ubifs_gced_idx_leb(9)struct ubifs_inode(9)struct ubifs_unclean_leb(9)struct ubifs_lprops(9)struct ubifs_lpt_lprops(9)struct ubifs_lp_stats(9)struct ubifs_cnode(9)struct ubifs_pnode(9)struct ubifs_nbranch(9)struct ubifs_nnode(9)struct ubifs_lpt_heap(9)struct ubifs_wbuf(9)struct ubifs_bud(9)struct ubifs_zbranch(9)struct ubifs_znode(9)struct bu_info(9)struct ubifs_node_range(9)struct ubifs_compressor(9)struct ubifs_budget_req(9)struct ubifs_orphan(9)struct ubifs_mount_opts(9)struct ubifs_budg_info(9)struct ubifs_stats_info(9)struct ubifs_info(9)ubifs_check_hash(9)ubifs_check_hmac(9)ubifs_branch_hash(9)ubifs_copy_hash(9)ubifs_auth_node_sz(9)
like, the whole friend group showed up to the function call π the way that list just keeps going?? obsessed π
πΈ that's the whole page, bestie β slay, you made it to the end πΈ
this little baddie lives in ./fs/ubifs and the version/date on it is October 2026, filed under struct ubifs_jhead(9). go read the source, it's free real estate π§ββοΈππ
π¦ 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