log_write_header(9)
π NAME π
okay so bestie, this is log_write_header(9) from the Kernel API Manual, and it is literally about one thing: get and initialize a journal header buffer. That's the whole vibe. π
β¨ SYNOPSIS β¨
void log_write_header (struct gfs2_sbd *sdp , u32 flags );
No cap, that's the exact signature β spaces and all. Keep it cute, keep it correct. π
π ARGUMENTS π
sdpβ the GFS2 superblock. That's the argument, and she's got main character energy. π«Άflagsβ the log header flags, including log header origin. All the flag lore lives here. β¨
π¦ RETURN π¦
The RETURN section says it gives you the initialized log buffer descriptor. The synopsis says void, so both of those details are staying exactly where they are β no editing the source material, bestie. π
π SEE ALSO π
Kernel file:
./fs/gfs2/log.c
The whole function squad:
gfs2_struct2blk(9)gfs2_remove_from_ail(9)gfs2_ail1_start_one(9)gfs2_ail1_flush(9)gfs2_ail1_start(9)gfs2_ail1_empty_one(9)gfs2_ail1_empty(9)gfs2_log_is_empty(9)gfs2_log_release_revokes(9)gfs2_log_release(9)__gfs2_log_try_reserve(9)__gfs2_log_reserve(9)gfs2_log_try_reserve(9)gfs2_log_reserve(9)log_distance(9)calc_reserved(9)gfs2_flush_revokes(9)gfs2_write_log_header(9)gfs2_ail_drain(9)empty_ail1_list(9)gfs2_trans_drain(9)__gfs2_log_flush(9)gfs2_merge_trans(9)gfs2_log_commit(9)gfs2_log_shutdown(9)gfs2_logd(9)
xoxo, your local kernel bestie π
β this page is sourced from ./fs/gfs2, dated October 2026, and it's all about log_write_header(9). byeee! π«Ά
π¦ 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