nilfs_bmap_insert(9)
π nilfs_bmap_insert(9) π
okay so bestie, welcome to the Kernel API Manual page for nilfs_bmap_insert β yes that's the whole name, yes it's a mouthful, we love her anyway π«Ά
β¨ NAME β¨
nilfs_bmap_insert β insert a new key-record pair into a bmap π
πΈ SYNOPSIS πΈ
int nilfs_bmap_insert (struct nilfs_bmap *bmap , __u64 key , unsigned
long rec );
literally the whole signature, no cap π
π¦ ARGUMENTS π¦
bmapβ the bmap. that's it. that's the description. she's a bmap. iconic minimalism πkeyβ the key. again, extremely self-explanatory, the kernel devs were in their brevity era πrecβ the record. yep. we're just naming the parameters at this point, and honestly? respect π
π DESCRIPTION π
so the way that nilfs_bmap_insert works is: it takes the brand-new key-record pair you specified with key and rec, and it inserts that pair into bmap. that's the whole vibe. new pair, go into the bmap, slay β¨
π RETURN π
on success you get 0 β periodt, we love a clean zero π
but on failure you get one of these negative error codes, and no bestie, none of them are a good time:
-EEXISTβ a record associated withkeyalready exists π so likeβ¦ it's already there. she's taken.-EIOβ I/O error, and yes, that includes metadata corruption π not the cute kind of drama.-ENOMEMβ insufficient memory available. the memory said "no <3" π
π₯ SEE ALSO π₯
kernel file ./fs/nilfs2/bmap.c β that's where she lives π§
and the whole friend group, all in one glow-up list:
nilfs_bmap_lookup_at_level(9)nilfs_bmap_seek_key(9)nilfs_bmap_delete(9)nilfs_bmap_truncate(9)nilfs_bmap_clear(9)nilfs_bmap_propagate(9)nilfs_bmap_lookup_dirty_buffers(9)nilfs_bmap_assign(9)nilfs_bmap_mark(9)nilfs_bmap_test_and_clear_dirty(9)nilfs_bmap_read(9)nilfs_bmap_write(9)
and that's the page, bestie!! brought to you by ./fs/nilfs2, dated October 2026, from the nilfs_bmap_insert(9) crew β go forth and insert responsibly πΈπ
π¦ 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