dbg_check_space_info(9)
β¨ dbg_check_space_info β¨
ok so this is dbg_check_space_info(9) from the Kernel API Manual β yes the whole page is literally named after the function, main character energy fr π
πΈ NAME πΈ
dbg_check_space_info β the little vibe-check function that checks your flash space information π«Ά
π¦ SYNOPSIS π¦
int dbg_check_space_info (struct ubifs_info *c );
π ARGUMENTS π
cβ the UBIFS file-system description object, aka the whole personality of the filesystem packed into one struct β¨
π DESCRIPTION π
okay so here's the tea β β this function takes your current flash space information and compares it to the snapshot that got saved back when dbg_save_space_info was called. like a before-and-after pic but for kernel memory πΈ
If nothing changed, it returns zero. Slay. β¨
If it did change, it returns -EINVAL β and yeah that's basically the kernel going "bestie what happened here π".
So, to recap the returns, no cap:
- returns zero if the information has not changed π
- returns
-EINVALif it has changed π
π₯ SEE ALSO π₯
Kernel file ./fs/ubifs/debug.c plus this whole friend group:
ubifs_dump_index(9)dbg_save_space_info(9)dbg_check_synced_i_size(9)dbg_check_key_order(9)dbg_check_znode(9)dbg_check_tnc(9)dbg_walk_index(9)add_size(9)dbg_check_idx_size(9)struct fsck_inode(9)struct fsck_data(9)add_inode(9)search_inode(9)read_add_inode(9)check_leaf(9)free_inodes(9)check_inodes(9)dbg_check_filesystem(9)dbg_check_data_nodes_order(9)dbg_check_nondata_nodes_order(9)provide_user_output(9)interpret_user_input(9)dbg_debugfs_init_fs(9)dbg_debugfs_exit_fs(9)dbg_debugfs_init(9)dbg_debugfs_exit(9)ubifs_debugging_init(9)ubifs_debugging_exit(9)
and that's the whole page bestie π§π it lives in ./fs/ubifs, dated October 2026, and it's dbg_check_space_info(9) all the way down β periodt πβ
π¦ 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