STRUCT BU_INFO(9)
π struct bu_info(9) β the Kernel API Manual just dropped
okay so real talk, we're in the Kernel API Manual today (yes bestie, the kernel kernel) and the main character of this page is struct bu_info β it's literally the bulk-read information struct, and it's giving "I organize your reading list so you don't have to" energy β¨
πΈ NAME
struct bu_info β bulk-read information. that's it, that's the vibe π
β¨ SYNOPSIS
struct bu_info {
union ubifs_key key;
struct ubifs_zbranch zbranch[UBIFS_MAX_BULK_READ];
void *buf;
int buf_len;
int gc_seq;
int cnt;
int blk_cnt;
int eof;
};
like, that's the whole struct, no cap. look at it. iconic. π
π¦ Members
okay so let's go member by member, because every single one of these is pulling its weight:
keyβ the first data node key. the first one, bestie. it's where the whole read kicks off πzbranchβzbranchesof the data nodes we're gonna bulk read. it's an array,UBIFS_MAX_BULK_READof them, so yeah she's loaded π«Άbufβ the buffer we read into. the destination. the moment. where the data actually lands β¨buf_lenβ buffer length. how big the buffer is, obviously, don't come for her πΈgc_seqβ GC sequence number, and it's here to detect races with GC. yes, race conditions, in my bulk read? it's more likely than you think πcntβ number of data nodes for bulk read. the count. the headcount. the attendance sheet πblk_cntβ number of data blocks including holes. including holes, bestie, do not forget the holes πeofβ end of file reached. we hit the wall. that's the end of the road, periodt π
π₯ SEE ALSO
Kernel file ./fs/ubifs/ubifs.h and honestly the whole friend group showed up β like literally everyone:
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_jhead(9)struct ubifs_zbranch(9)struct ubifs_znode(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)
iykyk, the whole ubifs squad is linked here β go read them if you wanna be the main character of your own filesystem π
and that's the page, bestie π sign-off time: this one lives in ./fs/ubifs, and the manual's dated October 2026 β future-proofed and flawless, as usual πβ¨
π¦ 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